mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9107] Fix most of the gcc warnings
* use UI64FMTD instead of "%u" for uint64 output * on most *NIX systems, I64FMT is "%016lX" and not "%016llX" * also fix typo: renamed GridMap::loadHeihgtData to GridMap::loadHeightData Note: there are still many warnings from the 3rd party libraries g3dlite and ACE. Those warnings won't be fixed with that commit. Also, a few warnings from MaNGOS are left, they'll be fixed later. Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
This commit is contained in:
parent
e568293d2c
commit
ebb063beb9
14 changed files with 53 additions and 48 deletions
|
|
@ -1212,7 +1212,7 @@ bool GridMap::loadData(char *filename)
|
|||
return false;
|
||||
}
|
||||
// loadup height data
|
||||
if (header.heightMapOffset && !loadHeihgtData(in, header.heightMapOffset, header.heightMapSize))
|
||||
if (header.heightMapOffset && !loadHeightData(in, header.heightMapOffset, header.heightMapSize))
|
||||
{
|
||||
sLog.outError("Error loading map height data\n");
|
||||
fclose(in);
|
||||
|
|
@ -1265,7 +1265,7 @@ bool GridMap::loadAreaData(FILE *in, uint32 offset, uint32 size)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool GridMap::loadHeihgtData(FILE *in, uint32 offset, uint32 size)
|
||||
bool GridMap::loadHeightData(FILE *in, uint32 offset, uint32 size)
|
||||
{
|
||||
map_heightHeader header;
|
||||
fseek(in, offset, SEEK_SET);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue