- fixed wall switch check.

This commit is contained in:
Christoph Oelckers 2020-07-25 10:54:46 +02:00
parent 9043123aab
commit 8d622f9340
1 changed files with 1 additions and 1 deletions

View File

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