Decompile fn_02081 (CRenderer::DrawBattleFieldIcon)

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

- fn_02081 CRenderer::DrawBattleFieldIcon: 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:44:54 +00:00
commit b3aa498ba1

View file

@ -72,7 +72,7 @@ void CRenderer::DrawBattleFieldIcon(CRenderSystemBase& system) {
int score = g_session.m_score1 < 0 ? 0 : g_session.m_score1;
int count = (score > 9) + 1;
digits[0] = score % 10;
digits[1] = score / 10 % 10;
digits[1] = (score /= 10) % 10;
if (width < 2) {
int x = this->viewport.width - 207;
for (int i = 0; i < count; ++i) {
@ -92,7 +92,7 @@ void CRenderer::DrawBattleFieldIcon(CRenderSystemBase& system) {
score = g_session.m_score2 < 0 ? 0 : g_session.m_score2;
count = (score > 9) + 1;
digits[0] = score % 10;
digits[1] = score / 10 % 10;
digits[1] = (score /= 10) % 10;
if (width > 1) {
int x = this->viewport.width - 175;
for (int i = 0; i < count; ++i) {