Skip to content

Commit

Permalink
Sync different heal location array names
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Oct 11, 2024
1 parent 48a57a7 commit 45b17dd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tools/mapjson/mapjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,15 +420,8 @@ void process_heal_locations(const vector<string> &map_filepaths, string output_f
ostringstream text;
text << "//\n// DO NOT MODIFY THIS FILE! It is auto-generated from data/maps/*/map.json\n//\n\n";

string arr_name;
if (version == "firered") {
arr_name = "sSpawnPoints";
} else {
arr_name = "sHealLocations";
}

string arr_body = heal_locations_text.str();
text << "static const struct HealLocation " << arr_name << "[] =\n{\n" << arr_body << "};\n\n";
text << "static const struct HealLocation sHealLocations[] =\n{\n" << arr_body << "};\n\n";

arr_body = respawn_maps_text.str();
if (!arr_body.empty())
Expand Down

0 comments on commit 45b17dd

Please sign in to comment.