- removed the 26 factor from Duke's par times.

What were they thinking?
This commit is contained in:
Christoph Oelckers 2021-04-29 16:16:04 +02:00
parent 5959543380
commit 5b54e9c1ad
2 changed files with 8 additions and 8 deletions

View file

@ -1703,15 +1703,15 @@ int ConCompiler::parsecommand()
while (*textptr == ' ' || *textptr == '\t') textptr++;
map->parTime =
(((*(textptr + 0) - '0') * 10 + (*(textptr + 1) - '0')) * 26 * 60) +
(((*(textptr + 3) - '0') * 10 + (*(textptr + 4) - '0')) * 26);
(((*(textptr + 0) - '0') * 10 + (*(textptr + 1) - '0')) * 60) +
(((*(textptr + 3) - '0') * 10 + (*(textptr + 4) - '0')));
textptr += 5;
while (*textptr == ' ' || *textptr == '\t') textptr++;
map->designerTime =
(((*(textptr + 0) - '0') * 10 + (*(textptr + 1) - '0')) * 26 * 60) +
(((*(textptr + 3) - '0') * 10 + (*(textptr + 4) - '0')) * 26);
(((*(textptr + 0) - '0') * 10 + (*(textptr + 1) - '0')) * 60) +
(((*(textptr + 3) - '0') * 10 + (*(textptr + 4) - '0')));
map->levelNumber = levnum;
map->cluster = j + 1;

View file

@ -681,12 +681,12 @@ class DukeLevelSummaryScreen : SummaryScreenBase
tempbuf = FormatTime(stats.time);
Duke.GameText((320 >> 2) + 71, 59 + 9, tempbuf, 0);
tempbuf = FormatTime(level.parTime / 26); // Build weirdness again...
tempbuf = FormatTime(level.parTime);
Duke.GameText((320 >> 2) + 71, 69 + 9, tempbuf, 0);
if (!Raze.isNamWW2GI())
{
tempbuf = FormatTime(level.designerTime / 26);
tempbuf = FormatTime(level.designerTime);
Duke.GameText((320 >> 2) + 71, 79 + 9, tempbuf, 0);
}
}
@ -911,10 +911,10 @@ class RRLevelSummaryScreen : SummaryScreenBase
tempbuf = FormatTime(stats.time);
Duke.BigText(191, 48, tempbuf, -1);
tempbuf = FormatTime(level.parTime / 26);
tempbuf = FormatTime(level.parTime);
Duke.BigText(191, 64, tempbuf, -1);
tempbuf = FormatTime(level.designerTime / 26);
tempbuf = FormatTime(level.designerTime);
Duke.BigText(191, 80, tempbuf, -1);
}
}