mirror of
https://github.com/rajkosto/mxoemu
synced 2026-08-14 02:26:05 -04:00
small fix
This commit is contained in:
parent
09bd426a85
commit
f9b0e68595
2 changed files with 992 additions and 996 deletions
|
|
@ -177,12 +177,12 @@ void ObjectMgr::OpenDoor( uint32 doorId, GameClient* requester)
|
|||
string sqlUpdateDoorType = (format("Update Doors Set DoorType = 0, `DoorId` = '%1%' Limit 1") % (int)doorId).str();
|
||||
if (sDatabase.Execute(sqlUpdateDoorType))
|
||||
{
|
||||
string msg1 = (format("{c:0FFFF0}Door:%1% Set to Indoors since u tried to open it but I think it is open, try again.{/c}") % (int)doorId).str();
|
||||
format msg1 = format("{c:0FFFF0}Door:0x%08x Set to Indoors since u tried to open it but I think it is open, try again.{/c}") % (int)doorId;
|
||||
|
||||
//Close Doors not working
|
||||
//sGame.AnnounceStateUpdate(NULL,make_shared<CloseDoorMsg>(it->first));
|
||||
|
||||
sGame.AnnounceCommand(NULL,make_shared<SystemChatMsg>(msg1));
|
||||
sGame.AnnounceCommand(NULL,make_shared<SystemChatMsg>(msg1.str()));
|
||||
}
|
||||
m_openDoors.erase(it);
|
||||
return;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue