Core/GameObjects: fixed instant reset of gameobjects after activation
This commit is contained in:
1 parent
488e4ef8e1
commit
1dbc943297
1 file changed
+1
-1
@@ -1100,7 +1100,7 @@ void GameObject::UseDoorOrButton(uint32 time_to_restore, bool alternative /* = f
|
||||
SwitchDoorOrButton(true, alternative);
|
||||
SetLootState(GO_ACTIVATED, user);
|
||||
|
||||
m_cooldownTime = time(NULL) + time_to_restore;
|
||||
m_cooldownTime = time_to_restore ? (time(NULL) + time_to_restore) : 0;
|
||||
}
|
||||
|
||||
void GameObject::SetGoArtKit(uint8 kit)
|
||||
|
||||
Reference in new issue
Block a user