mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11973] Various Cleanups
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
c243c42c3c
commit
f3f3349661
50 changed files with 153 additions and 134 deletions
|
|
@ -132,7 +132,7 @@ void GameEventMgr::LoadFromDB()
|
|||
uint16 event_id = fields[0].GetUInt16();
|
||||
if (event_id == 0)
|
||||
{
|
||||
sLog.outErrorDb("`game_event` game event id (%i) is reserved and can't be used.",event_id);
|
||||
sLog.outErrorDb("`game_event` game event id (%i) is reserved and can't be used.", event_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +145,6 @@ void GameEventMgr::LoadFromDB()
|
|||
pGameEvent.length = fields[4].GetUInt32();
|
||||
pGameEvent.holiday_id = HolidayIds(fields[5].GetUInt32());
|
||||
|
||||
|
||||
if (pGameEvent.length == 0) // length>0 is validity check
|
||||
{
|
||||
sLog.outErrorDb("`game_event` game event id (%i) have length 0 and can't be used.", event_id);
|
||||
|
|
@ -173,7 +172,7 @@ void GameEventMgr::LoadFromDB()
|
|||
delete result;
|
||||
|
||||
sLog.outString();
|
||||
sLog.outString( ">> Loaded %u game events", count );
|
||||
sLog.outString(">> Loaded %u game events", count);
|
||||
}
|
||||
|
||||
std::map<uint16,int16> pool2event; // for check unique spawn event associated with pool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue