Fix initialization issues with loading 'disable_timer' from the database for doors

This commit is contained in:
Akkadius
2017-04-10 19:55:17 -05:00
parent 080f6c5c3e
commit b5b6145786
4 changed files with 102 additions and 82 deletions
+3 -3
View File
@@ -32,8 +32,8 @@ public:
const glm::vec4& GetPosition() const{ return m_Position; }
int GetIncline() { return incline; }
bool triggered;
void SetOpenState(bool st) { isopen = st; }
bool IsDoorOpen() { return isopen; }
void SetOpenState(bool st) { is_open = st; }
bool IsDoorOpen() { return is_open; }
uint8 GetTriggerDoorID() { return trigger_door; }
uint8 GetTriggerType() { return trigger_type; }
@@ -93,7 +93,7 @@ private:
int invert_state;
uint32 entity_id;
bool disable_timer;
bool isopen;
bool is_open;
Timer close_timer;
//Timer trigger_timer;