Core/Transports: corrected handling of stop frames. The initial stop frame sitting at 0ms is not suposed to be sent via packet but instead it's only internally used.

This commit is contained in:
Ovahlord committed 2019-12-13 17:35:57 +01:00
1 parent f3b7b536f4
commit de371675e6
2 files changed
+13 -15

No files matched your search

@@ -95,7 +95,6 @@ struct go_hoo_the_makers_lift_controller : public GameObjectAI
bool GossipSelect(Player* player, uint32 /*sender*/, uint32 action) override
{
ClearGossipMenuFor(player);
player->PlayerTalkClass->SendCloseGossip();
@@ -108,7 +107,7 @@ struct go_hoo_the_makers_lift_controller : public GameObjectAI
if (!elevator)
return true;
if (action == 0 && elevator->GetGoState() >= GO_STATE_TRANSPORT_STOPPED + 2)
if (action == 0 && elevator->GetGoState() >= GO_STATE_TRANSPORT_ACTIVE + 2)
elevator->SetTransportState(GO_STATE_TRANSPORT_ACTIVE);
else
elevator->SetTransportState(GO_STATE_TRANSPORT_STOPPED, action);