mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Flicky colors indexing fix
This commit is contained in:
parent
956d48b5e0
commit
9e5b9ac50e
1 changed files with 2 additions and 2 deletions
|
@ -10799,8 +10799,8 @@ void P_InternalFlickySetColor(mobj_t *actor, UINT8 extrainfo)
|
|||
if (extrainfo == 0)
|
||||
// until we can customize flicky colors by level header, just stick to SRB2's defaults
|
||||
actor->color = flickycolors[P_RandomKey(2)]; //flickycolors[P_RandomKey(sizeof(flickycolors))];
|
||||
else if (extrainfo-1 < 15) //sizeof(flickycolors))
|
||||
actor->color = flickycolors[extrainfo-1];
|
||||
else
|
||||
actor->color = flickycolors[min(extrainfo-1, 14)]; // sizeof(flickycolors)-1
|
||||
}
|
||||
|
||||
// Function: A_FlickyCenter
|
||||
|
|
Loading…
Reference in a new issue