Fix CLEAR! signpost showing up in unmodded games (& add proper support for SPR2 animated signpost)
Merge request reports
Activity
Filter activity
p_enemy.c: In function 'A_SignPlayer': p_enemy.c:5235:25: error: comparison of integer expressions of different signedness: 'int' and 'statenum_t' {aka 'const enum state'} [-Werror=sign-compare] 5235 | if (ov->state-states != actor->info->seestate) | ^~ p_enemy.c:5242:25: error: comparison of integer expressions of different signedness: 'int' and 'statenum_t' {aka 'const enum state'} [-Werror=sign-compare] 5242 | if (ov->state-states != actor->info->missilestate) | ^~ p_enemy.c:5250:24: error: comparison of integer expressions of different signedness: 'int' and 'statenum_t' {aka 'const enum state'} [-Werror=sign-compare] 5250 | if (ov->state-states != actor->info->meleestate) | ^~
Breaks 32 bit builds
I see - but specifically, why doesn't it error when comparing to a statenum_t directly? (Such as here: https://git.magicalgirl.moe/STJr/SRB2/blob/master/src/p_user.c#L2291)
removed Bruh moment label
mentioned in commit 9498c5ba
Please register or sign in to reply