Cleaned up environment_smash vars with bitflag defines (#2515)
This commit is contained in:
committed by
kevinz000
parent
718940042a
commit
94429bdccc
@@ -40,7 +40,7 @@
|
||||
M.do_attack_animation(src)
|
||||
if(!M.environment_smash)
|
||||
return
|
||||
if(M.environment_smash == 3)
|
||||
if(M.environment_smash & ENVIRONMENT_SMASH_RWALLS)
|
||||
dismantle_wall(1)
|
||||
playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user