Fix bad logic for kill counter in G_DisplayRest()

git-svn-id: https://svn.eduke32.com/eduke32@7011 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-07 05:21:01 +00:00
parent e1c1cebfbb
commit 2f65866167
1 changed files with 2 additions and 6 deletions

View File

@ -1306,13 +1306,9 @@ void G_DisplayRest(int32_t smoothratio)
else
{
if (myps->actors_killed >= myps->max_actors_killed)
Bsprintf(tempbuf, "K:%d/%d", myps->actors_killed,
myps->max_actors_killed>myps->actors_killed ?
myps->max_actors_killed : myps->actors_killed);
Bsprintf(tempbuf, "K:%d/%d", myps->actors_killed, myps->actors_killed);
else
Bsprintf(tempbuf, "K:^15%d/%d", myps->actors_killed,
myps->max_actors_killed>myps->actors_killed ?
myps->max_actors_killed : myps->actors_killed);
Bsprintf(tempbuf, "K:^15%d/%d", myps->actors_killed, myps->max_actors_killed);
}
G_ScreenText(MF_Bluefont.tilenum, 2<<16, i-gtextsc(14<<16), gtextsc(MF_Bluefont.zoom), 0, 0, tempbuf, 0, 10, 2|8|16|256|ROTATESPRITE_FULL16, 0, MF_Bluefont.emptychar.x, MF_Bluefont.emptychar.y, xbetween, MF_Bluefont.between.y, MF_Bluefont.textflags|TEXT_XOFFSETZERO|TEXT_GAMETEXTNUMHACK, 0, 0, xdim-1, ydim-1);