From 0859e8fdc4f5d54f50787ef52c31d1b5386ed1c7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 17 Apr 2024 21:11:57 +0800 Subject: [PATCH] 1 --- server/gameserver/sandtable.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/server/gameserver/sandtable.cc b/server/gameserver/sandtable.cc index 6c61cc34..67020d2f 100644 --- a/server/gameserver/sandtable.cc +++ b/server/gameserver/sandtable.cc @@ -7,9 +7,14 @@ SandTable::SandTable(Room* room): room_(room) { - room->OpenRoomSwitch(kRoomSwitchDisableUseSkill); - room->OpenRoomSwitch(kRoomSwitchDisableUseItem); - room->OpenRoomSwitch(kRoomSwitchDisableShot); + if (room->IsSandTableRoom()) { + room->OpenRoomSwitch(kRoomSwitchDisableUseSkill); + room->OpenRoomSwitch(kRoomSwitchDisableUseItem); + room->OpenRoomSwitch(kRoomSwitchDisableShot); + } else { + room->OpenRoomSwitch(kRoomSwitchDisableUseSkill); + room->OpenRoomSwitch(kRoomSwitchDisableUseItem); + } #ifdef MYDEBUG int lock_time = std::max(0, (int)room->GetGasInactiveTime() - 4); #else