Decompile fn_23844 (sub_E198F0)

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

- fn_23844 sub_E198F0: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev, StrawberrysherbetIX
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-05 01:57:44 +00:00
commit f49d92deb8

View file

@ -45,8 +45,10 @@ void sub_E198F0() {
int index = 0;
int mapId = 0;
int propertyId = 0;
while (index < size && mapId <= 39) {
char character = buffer[index++];
while (index < size) {
if (character == '/') {
if (buffer[index] == '/') {
@ -66,6 +68,7 @@ void sub_E198F0() {
} else {
char valueText[16] = {};
int textIndex = 0;
while (character != ' ' && character != '\t') {
valueText[textIndex++] = character;
character = buffer[index++];
@ -75,7 +78,7 @@ void sub_E198F0() {
}
}
g_mapPropertyMgr->m_properties[mapId].SetValue(propertyId, std::atoi(valueText));
g_mapPropertyMgr->SetValue(mapId, propertyId, std::atoi(valueText));
++propertyId;
if (propertyId >= 27) {
++mapId;
@ -85,9 +88,6 @@ void sub_E198F0() {
}
}
if (index >= size) {
break;
}
character = buffer[index++];
}
}