Fix hardcoded (19,8) all-sides warp happening in custom levels

(19,8) is hardcoded to warp on all-sides no matter what. This is fine,
except for the fact that it was doing this in custom levels, too, even
despite the fact that the warp background and color would be overridden
anyway. The only workaround was to add a warp line to the room in custom
levels. I've added a check for custommode so that this won't happen.
This commit is contained in:
Info Teddy authored and Ethan Lee committed 2020-02-02 08:43:28 -05:00
1 parent e439949d7d
commit 1e460721bb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1304,7 +1304,7 @@ void mapclass::loadlevel(int rx, int ry, Graphics& dwgfx, Game& game, entityclas
}
}
if (rx == 119 && ry == 108)
if (rx == 119 && ry == 108 && !custommode)
{
background = 5;
dwgfx.rcol = 3;
+1 -1
View File
@@ -892,7 +892,7 @@
}
}
if (rx == 119 && ry == 108) {
if (rx == 119 && ry == 108 && !custommode) {
background = 5;
dwgfx.rcol = 3;
warpx = true;