Remove SaveMapEvent::Fixup and UnFixup
These are wrong. When save_map_count is violated all
event data is cleared. These values don't actually go
to -1 and have their own defaults.
MODIFY
generator/csv/setup.csv
generator/csv/setup.csv
@@ -7,8 +7,6 @@ SaveActor,void Fixup(int actor_id),
SaveActor,void UnFixup(),
SaveInventory,void Setup(),
SaveMapEvent,void Setup(const RPG::Event& event),"rpg_event.h"
-SaveMapEvent,void Fixup(const RPG::EventPage& page),
-SaveMapEvent,void UnFixup(const RPG::EventPage& page),
SaveMapInfo,void Setup(),
SaveMapInfo,void Setup(const RPG::Map& map),"rpg_map.h"
SaveMapInfo,void Fixup(const RPG::Map& map),

MODIFY
src/generated/rpg_savemapevent.h
src/generated/rpg_savemapevent.h
Binary files a/src/generated/rpg_savemapevent.h and b/src/generated/rpg_savemapevent.h differ

MODIFY
src/rpg_fixup.cpp
src/rpg_fixup.cpp
@@ -74,38 +74,6 @@ void RPG::SaveActor::UnFixup() {
}
}
-
-
-void RPG::SaveMapEvent::Fixup(const RPG::EventPage& page) {
- if (move_frequency == -1) {
- move_frequency = page.move_frequency;
- }
- if (move_speed == -1) {
- move_speed = page.move_speed;
- }
- if (sprite_name.empty()) {
- sprite_name = page.character_name;
- }
- if (sprite_id == -1) {
- sprite_id = page.character_index;
- }
-}
-
-void RPG::SaveMapEvent::UnFixup(const RPG::EventPage& page) {
- if (move_frequency == page.move_frequency) {
- move_frequency = -1;
- }
- if (move_speed == page.move_speed) {
- move_speed = -1;
- }
- if (sprite_name == page.character_name) {
- sprite_name.clear();
- }
- if (sprite_id == page.character_index) {
- sprite_id = -1;
- }
-}
-
void RPG::SaveSystem::Fixup() {
const RPG::System& system = Data::system;

Remove SaveMapEvent::Fixup and UnFixup

These are wrong. When save_map_count is violated all
event data is cleared. These values don't actually go
to -1 and have their own defaults.