fix laser telegun through TELEINWEAPON tile

This commit is contained in:
Ryozuki 2018-11-10 20:47:11 +01:00
parent 62dbda204e
commit 41fc33406a

View file

@ -201,7 +201,10 @@ void CLaser::DoBounce()
int TileFIndex = GameServer()->Collision()->GetFTileIndex(MapIndex);
bool IsSwitchTeleGun = GameServer()->Collision()->IsSwitch(MapIndex) == TILE_ALLOW_TELE_GUN;
bool IsBlueSwitchTeleGun = GameServer()->Collision()->IsSwitch(MapIndex) == TILE_ALLOW_BLUE_TELE_GUN;
int IsTeleInWeapon = GameServer()->Collision()->IsTeleportWeapon(MapIndex);
if(!IsTeleInWeapon)
{
if(IsSwitchTeleGun || IsBlueSwitchTeleGun) {
// Delay specifies which weapon the tile should work for.
// Delay = 0 means all.
@ -223,6 +226,7 @@ void CLaser::DoBounce()
&& !IsSwitchTeleGun
&& !IsBlueSwitchTeleGun);
}
}
//m_Owner = -1;
}