De-duplicate one-way recolor conditional

Now you only have to call one function (and pass it a tile number) to
figure out if you should recolor a one-way tile or not, and you don't
have to copy-paste.
This commit is contained in:
Misa
2021-03-05 23:55:35 -08:00
committed by Ethan Lee
parent b4dd516d7d
commit ca4afcc140
2 changed files with 16 additions and 4 deletions

View File

@@ -161,6 +161,9 @@ public:
void drawbackground(int t);
void updatebackground(int t);
#ifndef NO_CUSTOM_LEVELS
bool shouldrecoloroneway(const int tilenum);
#endif
void drawtile3( int x, int y, int t, int off, int height_subtract = 0 );
void drawtile2( int x, int y, int t );
void drawtile( int x, int y, int t );