mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
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:
parent
27c9651fde
commit
41fb46b1bc
1 changed files with 15 additions and 10 deletions
|
@ -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)),
|
||||||
|
|
Loading…
Reference in a new issue