[Doors] Replace magic # in code with a field in doors table for when door closes. (#4288)

* [Doors] Move hard coded door close timer to doors table

* Fix typo in version #

* Make field unsigned and not null
This commit is contained in:
Paul Coene
2024-04-25 17:59:01 -04:00
committed by GitHub
parent 1b8922fc14
commit 1529c0f670
4 changed files with 46 additions and 22 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ extern EntityList entity_list;
extern WorldServer worldserver;
Doors::Doors(const DoorsRepository::Doors &door) :
m_close_timer(5000),
m_close_timer(door.close_timer_ms),
m_position(door.pos_x, door.pos_y, door.pos_z, door.heading),
m_destination(door.dest_x, door.dest_y, door.dest_z, door.dest_heading)
{