mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[8080] Portability fixes for some Unix platforms.
* Add #include <stdio.h> to some fiels where related functions call. * Avoid template dependent lookup for fields in class LockedQueue.
This commit is contained in:
parent
95ce1eed1c
commit
a7d9ace55f
8 changed files with 34 additions and 41 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include "CoordModelMapping.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
using namespace G3D;
|
||||
|
||||
|
|
@ -42,6 +43,13 @@ namespace VMAP
|
|||
return(CMappingEntry::getKeyString(iMapId,xPos, yPos));
|
||||
}
|
||||
|
||||
const std::string CMappingEntry::getKeyString( unsigned int pMapId, int pXPos, int pYPos )
|
||||
{
|
||||
char b[100];
|
||||
sprintf(b,"%03u_%d_%d", pMapId, pXPos, pYPos);
|
||||
return(std::string(b));
|
||||
}
|
||||
|
||||
//============================================================
|
||||
//============================================================
|
||||
//============================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue