ref: 9da92097a8f9d3d1da7d28994a1da12527a22ae3
parent: 69a2697a0ae3f403609a804c4fda107b8c5656d6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri May 10 22:22:10 EDT 2019
Deobfuscate some TimeCounter-related values
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -275,13 +275,13 @@
//Set character
time_counter = LoadTimeCounter();
- if (time_counter && time_counter < 18000)
+ if (time_counter && time_counter < 6 * 60 * 50) // 6 minutes
char_type = 1;
- if (time_counter && time_counter < 15000)
+ if (time_counter && time_counter < 5 * 60 * 50) // 5 minutes
char_type = 2;
- if (time_counter && time_counter < 12000)
+ if (time_counter && time_counter < 4 * 60 * 50) // 4 minutes
char_type = 3;
- if (time_counter && time_counter < 9000)
+ if (time_counter && time_counter < 3 * 60 * 50) // 3 minutes
char_type = 4;
//Set music to character's specific music
--- a/src/MycParam.cpp
+++ b/src/MycParam.cpp
@@ -406,7 +406,7 @@
// Draw clock and increase time
if (g_GameFlags & 2)
{
- if (time_count < 300000)
+ if (time_count < 100 * 60 * 50) // 100 minutes
++time_count;
if (time_count % 30 > 10)
@@ -420,7 +420,7 @@
}
// 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 + 32, y, time_count / 5 % 10, false);
PutBitmap3(&grcGame, x + 30, y, &rcTime[2], SURFACE_ID_TEXT_BOX);