add warning if random enemy location count is too large
This commit is contained in:
+6
-2
@@ -3623,8 +3623,12 @@ string MapFile::Event2Entry::str() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string MapFile::RandomEnemyLocationSection::str() const {
|
string MapFile::RandomEnemyLocationSection::str() const {
|
||||||
return std::format("[RandomEnemyLocationSection room={:04X} count={:04X} offset={:08X} index={}]",
|
string count_warning_str;
|
||||||
this->room, this->count, this->offset, this->offset / sizeof(RandomEnemyLocation));
|
if (count > 0x20) {
|
||||||
|
count_warning_str = " /* warning: count is too large */";
|
||||||
|
}
|
||||||
|
return std::format("[RandomEnemyLocationSection room={:04X} count={:04X}{} offset={:08X} index={}]",
|
||||||
|
this->room, this->count, count_warning_str, this->offset, this->offset / sizeof(RandomEnemyLocation));
|
||||||
}
|
}
|
||||||
|
|
||||||
string MapFile::RandomEnemyLocation::str() const {
|
string MapFile::RandomEnemyLocation::str() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user