mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix M_DrawSetupMultiPlayerMenu crashing trying to draw null face graphics.
This commit is contained in:
parent
cc7702005f
commit
50fe3a728c
1 changed files with 5 additions and 4 deletions
|
|
@ -9560,7 +9560,7 @@ static void M_DrawSetupMultiPlayerMenu(void)
|
||||||
INT32 offx = 8, offy = 8;
|
INT32 offx = 8, offy = 8;
|
||||||
patch_t *cursor;
|
patch_t *cursor;
|
||||||
static UINT8 cursorframe = 0;
|
static UINT8 cursorframe = 0;
|
||||||
//patch_t *face;
|
patch_t *face;
|
||||||
UINT8 *colmap;
|
UINT8 *colmap;
|
||||||
|
|
||||||
if (skullAnimCounter % 4 == 0)
|
if (skullAnimCounter % 4 == 0)
|
||||||
|
|
@ -9577,19 +9577,20 @@ static void M_DrawSetupMultiPlayerMenu(void)
|
||||||
if (!(k++))
|
if (!(k++))
|
||||||
{
|
{
|
||||||
scale = FRACUNIT;
|
scale = FRACUNIT;
|
||||||
//face = faceprefix[col][FACE_WANTED];
|
face = faceprefix[col][FACE_WANTED];
|
||||||
offx = 12;
|
offx = 12;
|
||||||
offy = 0;
|
offy = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
scale = FRACUNIT/2;
|
scale = FRACUNIT/2;
|
||||||
//face = faceprefix[col][FACE_RANK];
|
face = faceprefix[col][FACE_RANK];
|
||||||
offx = 8;
|
offx = 8;
|
||||||
offy = 8;
|
offy = 8;
|
||||||
}
|
}
|
||||||
colmap = R_GetTranslationColormap(col, setupm_fakecolor->color, GTC_MENUCACHE);
|
colmap = R_GetTranslationColormap(col, setupm_fakecolor->color, GTC_MENUCACHE);
|
||||||
//V_DrawFixedPatch((x+offx)<<FRACBITS, (my+28+offy)<<FRACBITS, FRACUNIT, 0, face, colmap);
|
if (face)
|
||||||
|
V_DrawFixedPatch((x+offx)<<FRACBITS, (my+28+offy)<<FRACBITS, FRACUNIT, 0, face, colmap);
|
||||||
if (scale == FRACUNIT) // bit of a hack
|
if (scale == FRACUNIT) // bit of a hack
|
||||||
V_DrawFixedPatch((x+offx)<<FRACBITS, (my+28+offy)<<FRACBITS, FRACUNIT, 0, cursor, colmap);
|
V_DrawFixedPatch((x+offx)<<FRACBITS, (my+28+offy)<<FRACBITS, FRACUNIT, 0, cursor, colmap);
|
||||||
if (++col >= numskins)
|
if (++col >= numskins)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue