Refactor warp dir switching to separate function

This is so the same code can be used to go in reverse instead of
copy-pasting it.
This commit is contained in:
Misa
2021-08-22 20:51:21 -07:00
parent 0489293885
commit d2153aee87
2 changed files with 42 additions and 26 deletions

View File

@@ -190,6 +190,7 @@ class editorclass{
void switch_tilecol(const bool reversed);
void clamp_tilecol(const int rx, const int ry, const bool wrap);
void switch_enemy(const bool reversed);
void switch_warpdir(const bool reversed);
bool load(std::string& _path);
bool save(std::string& _path);