- fixed wall switch check.

This commit is contained in:
Christoph Oelckers 2020-07-25 10:54:46 +02:00
parent 9043123aab
commit 8d622f9340

View file

@ -60,7 +60,7 @@ inline void settileflag(int flag, const std::initializer_list<short>& types)
inline bool wallswitchcheck(int s) inline bool wallswitchcheck(int s)
{ {
return !!(tileinfo[s].flags & TFLAG_WALLSWITCH); return !!(tileinfo[sprite[s].picnum].flags & TFLAG_WALLSWITCH);
} }
inline int checkcursectnums(int se) inline int checkcursectnums(int se)