Deobfuscate some TimeCounter-related values
This commit is contained in:
parent
69a2697a0a
commit
9da92097a8
2 changed files with 6 additions and 6 deletions
|
@ -275,13 +275,13 @@ int ModeTitle()
|
||||||
//Set character
|
//Set character
|
||||||
time_counter = LoadTimeCounter();
|
time_counter = LoadTimeCounter();
|
||||||
|
|
||||||
if (time_counter && time_counter < 18000)
|
if (time_counter && time_counter < 6 * 60 * 50) // 6 minutes
|
||||||
char_type = 1;
|
char_type = 1;
|
||||||
if (time_counter && time_counter < 15000)
|
if (time_counter && time_counter < 5 * 60 * 50) // 5 minutes
|
||||||
char_type = 2;
|
char_type = 2;
|
||||||
if (time_counter && time_counter < 12000)
|
if (time_counter && time_counter < 4 * 60 * 50) // 4 minutes
|
||||||
char_type = 3;
|
char_type = 3;
|
||||||
if (time_counter && time_counter < 9000)
|
if (time_counter && time_counter < 3 * 60 * 50) // 3 minutes
|
||||||
char_type = 4;
|
char_type = 4;
|
||||||
|
|
||||||
//Set music to character's specific music
|
//Set music to character's specific music
|
||||||
|
|
|
@ -406,7 +406,7 @@ void PutTimeCounter(int x, int y)
|
||||||
// Draw clock and increase time
|
// Draw clock and increase time
|
||||||
if (g_GameFlags & 2)
|
if (g_GameFlags & 2)
|
||||||
{
|
{
|
||||||
if (time_count < 300000)
|
if (time_count < 100 * 60 * 50) // 100 minutes
|
||||||
++time_count;
|
++time_count;
|
||||||
|
|
||||||
if (time_count % 30 > 10)
|
if (time_count % 30 > 10)
|
||||||
|
@ -420,7 +420,7 @@ void PutTimeCounter(int x, int y)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw time
|
// Draw time
|
||||||
PutNumber4(x, y, time_count / 3000, false);
|
PutNumber4(x, y, time_count / (60 * 50), false);
|
||||||
PutNumber4(x + 20, y, time_count / 50 % 60, true);
|
PutNumber4(x + 20, y, time_count / 50 % 60, true);
|
||||||
PutNumber4(x + 32, y, time_count / 5 % 10, false);
|
PutNumber4(x + 32, y, time_count / 5 % 10, false);
|
||||||
PutBitmap3(&grcGame, x + 30, y, &rcTime[2], SURFACE_ID_TEXT_BOX);
|
PutBitmap3(&grcGame, x + 30, y, &rcTime[2], SURFACE_ID_TEXT_BOX);
|
||||||
|
|
Loading…
Add table
Reference in a new issue