win32 gcc 4.3.0 fixes

git-svn-id: https://svn.eduke32.com/eduke32@760 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-06-04 08:58:02 +00:00
parent 65c2fd394a
commit 1747bc460e
5 changed files with 8 additions and 10 deletions

View file

@ -18,10 +18,8 @@
//#include <GL/glext.h>
#if defined(__APPLE__)
# include <OpenGL/glext.h>
#elif defined(_MSC_VER)
# include "glext.h"
#else
# include "GL/glext.h"
# include "glext.h"
#endif
#ifndef GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT

View file

@ -576,7 +576,7 @@ int32 CONFIG_ReadSetup(void)
tempbuf[Bstrlen(tempbuf)-1] = '\0';
Bstrncpy(myname,tempbuf,sizeof(myname)-1);
myname[sizeof(myname)] = '\0';
myname[sizeof(myname)-1] = '\0';
SCRIPT_GetString(ud.config.scripthandle, "Comm Setup","RTSName",&ud.rtsname[0]);

View file

@ -9873,7 +9873,7 @@ static void Startup(void)
tempbuf[Bstrlen(tempbuf)-1] = '\0';
Bstrncpy(myname,tempbuf,sizeof(myname)-1);
myname[sizeof(myname)] = '\0';
myname[sizeof(myname)-1] = '\0';
}
if (CommandMap)

View file

@ -1912,10 +1912,10 @@ static void DoPlayer(int iSet, int lVar1, int lLabelID, int lVar2, int lParm2)
case PLAYER_WEAPRECS:
if (iSet)
{
g_player[iPlayer].ps->weaprecs[16]=lValue;
g_player[iPlayer].ps->weaprecs[15]=lValue;
return;
}
SetGameVarID(lVar2, g_player[iPlayer].ps->weaprecs[16], g_i, g_p);
SetGameVarID(lVar2, g_player[iPlayer].ps->weaprecs[15], g_i, g_p);
return;
case PLAYER_WEAPRECCNT:
@ -2143,14 +2143,14 @@ static void DoPlayer(int iSet, int lVar1, int lLabelID, int lVar2, int lParm2)
SetGameVarID(lVar2, g_player[iPlayer].ps->on_ground, g_i, g_p);
return;
case PLAYER_NAME:
/* case PLAYER_NAME:
if (iSet)
{
g_player[iPlayer].ps->name[32]=lValue;
return;
}
SetGameVarID(lVar2, g_player[iPlayer].ps->name[32], g_i, g_p);
return;
return;*/
case PLAYER_INVEN_ICON:
if (iSet)

View file

@ -942,7 +942,7 @@ static int osdcmd_name(const osdfuncparm_t *parm)
tempbuf[Bstrlen(tempbuf)-1] = '\0';
Bstrncpy(myname,tempbuf,sizeof(myname)-1);
myname[sizeof(myname)] = '\0';
myname[sizeof(myname)-1] = '\0';
OSD_Printf("name %s\n",myname);