Merge branch '4.3.4' into '4.3.4'

Corrected doors and buttons without autoclose time after recent changes

See merge request !40
This commit is contained in:
Aokromes
2017-04-19 17:32:30 +00:00

View File

@@ -1195,7 +1195,7 @@ void GameObject::UseDoorOrButton(uint32 time_to_restore, bool alternative /* = f
SwitchDoorOrButton(true, alternative);
SetLootState(GO_ACTIVATED, user);
m_cooldownTime = GameTime::GetGameTimeMS() + time_to_restore;
m_cooldownTime = time_to_restore ? (GameTime::GetGameTimeMS() + time_to_restore) : 0;
}
void GameObject::SetGoArtKit(uint8 kit)