mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Debug: Fix dumping of randomised sprite groups
This commit is contained in:
parent
76fcfd3efd
commit
aaf5cd1091
@ -618,10 +618,10 @@ void SpriteGroupDumper::DumpSpriteGroup(const SpriteGroup *sg, int padding, uint
|
||||
seprintf(this->buffer, lastof(this->buffer), "%*sRandom (%s, %s, triggers: %X, count: %X, lowest_randbit: %X, groups: %u) [%u]",
|
||||
padding, "", _sg_scope_names[rsg->var_scope], rsg->cmp_mode == RSG_CMP_ANY ? "ANY" : "ALL",
|
||||
rsg->triggers, rsg->count, rsg->lowest_randbit, (uint)rsg->groups.size(), rsg->nfo_line);
|
||||
this->print();
|
||||
for (const auto &group : rsg->groups) {
|
||||
this->DumpSpriteGroup(group, padding + 2, 0);
|
||||
}
|
||||
this->print();
|
||||
break;
|
||||
}
|
||||
case SGT_CALLBACK:
|
||||
|
Loading…
Reference in New Issue
Block a user