return g_CurrentTexture;
}
-epair_t* GetNextChainItem(epair_t* lastItem, char* key, char* value)
+epair_t* GetNextChainItem(epair_t* lastItem, const char* key, const char* value)
{
epair_t* nextEPair = g_FuncTable.m_pfnAllocateEpair(key, value);
GetFilename(exename, "q3map");
UnixToDosPath(exename); // do we want this done in linux version?
- char mapname[256];
+ char mapname[256];
const char *pn = g_FuncTable.m_pfnReadProjectKey("mapspath");
-
+
strcpy( mapname, pn );
strcat( mapname, "/ac_prt.map" );
UnixToDosPath(mapname);
// doors, etc
DEntity world;
-
+
char buffer[128];
const char *pn = g_FuncTable.m_pfnReadProjectKey("mapspath");
vec_t Min(vec_t a, vec_t b);
-epair_t* GetNextChainItem(epair_t* lastItem, char* key, char* value);
+epair_t* GetNextChainItem(epair_t* lastItem, const char* key, const char* value);
// reads current texture into global, returns pointer to it
const char* GetCurrentTexture();
WinPrint("NMSG_WriteString: overflow\n");
return;
} //end if
- strcpy(&msg->data[msg->size], string);
+ memcpy(&msg->data[msg->size], string, strlen(string) + 1);
msg->size += strlen(string) + 1;
} //end of the function NMSG_WriteString
//===========================================================================
//===========================================================================
int NMSG_ReadChar(netmessage_t *msg)
{
- if (msg->size + 1 > msg->size)
+ if (msg->read + 1 > msg->size)
{
msg->readoverflow = qtrue;
WinPrint("NMSG_ReadChar: read overflow\n");
{
static char string[2048];
int l, c;
-
+
l = 0;
do
{