Decompile fn_21260 (CGameMode::DrawTimeAttackCountdown)

Batch #17497 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_21260 CGameMode::DrawTimeAttackCountdown: logic confirmed by peer review

Peer-reviewed-by: eAthena, Yommy
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-11 23:43:40 +00:00
commit 41f917142e

View file

@ -776,16 +776,16 @@ void CGameMode::DrawTimeAttackCountdown(std::uint32_t value, int mode) {
display = 0;
}
digits[0] = display % 10;
digits[1] = display / 10 % 10;
digits[1] = (display /= 10) % 10;
if (minutes > 0) {
count = 4;
digits[3] = minutes % 10;
digits[4] = minutes / 10 % 10;
digits[4] = (minutes /= 10) % 10;
}
if (hours > 0) {
count = 6;
digits[6] = hours % 10;
digits[7] = hours / 10 % 10;
digits[7] = (hours /= 10) % 10;
}
int total;
@ -793,7 +793,7 @@ void CGameMode::DrawTimeAttackCountdown(std::uint32_t value, int mode) {
int startIndex;
if (days > 0) {
digits[9] = days % 10;
digits[10] = days / 10 % 10;
digits[10] = (days /= 10) % 10;
total = 11;
offset = -220;
startIndex = 10;