Fix a display error with the bonus screen when a map's 3DR time was zero.

git-svn-id: https://svn.eduke32.com/eduke32@4518 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-06-21 15:30:48 +00:00
parent 27c9651fde
commit 41fb46b1bc

View file

@ -12862,9 +12862,12 @@ void G_BonusScreen(int32_t bonusonly)
yy+=10; yy+=10;
if (!(ud.volume_number == 0 && ud.last_level-1 == 7)) if (!(ud.volume_number == 0 && ud.last_level-1 == 7))
{ {
gametext(10,yy+9,"Par Time:",0,2+8+16); if (MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].partime)
yy+=10; {
if (!NAM && !DUKEBETA) gametext(10,yy+9,"Par Time:",0,2+8+16);
yy+=10;
}
if (!NAM && !DUKEBETA && MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].designertime)
{ {
gametext(10,yy+9,"3D Realms' Time:",0,2+8+16); gametext(10,yy+9,"3D Realms' Time:",0,2+8+16);
yy+=10; yy+=10;
@ -12906,13 +12909,15 @@ void G_BonusScreen(int32_t bonusonly)
if (!(ud.volume_number == 0 && ud.last_level-1 == 7)) if (!(ud.volume_number == 0 && ud.last_level-1 == 7))
{ {
Bsprintf(tempbuf,"%0*d:%02d",clockpad, if (MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].partime)
(MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].partime/(REALGAMETICSPERSEC*60)), {
(MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].partime/REALGAMETICSPERSEC)%60); Bsprintf(tempbuf,"%0*d:%02d",clockpad,
gametext((320>>2)+71,yy+9,tempbuf,0,2+8+16); (MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].partime/(REALGAMETICSPERSEC*60)),
yy+=10; (MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].partime/REALGAMETICSPERSEC)%60);
gametext((320>>2)+71,yy+9,tempbuf,0,2+8+16);
if (!NAM && MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].designertime) yy+=10;
}
if (!NAM && !DUKEBETA && MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].designertime)
{ {
Bsprintf(tempbuf,"%0*d:%02d",clockpad, Bsprintf(tempbuf,"%0*d:%02d",clockpad,
(MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].designertime/(REALGAMETICSPERSEC*60)), (MapInfo[ud.volume_number*MAXLEVELS+ud.last_level-1].designertime/(REALGAMETICSPERSEC*60)),