gcc 4.3 warning/bug fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2320 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-08-14 08:58:07 +00:00
parent bd46ea29a6
commit 3b05838c82
9 changed files with 47 additions and 33 deletions
+10 -5
View File
@@ -28,12 +28,15 @@ void renderent(entity &e, const char *mdlname, float z, float yaw, int anim = AN
void renderentities()
{
if(editmode) loopv(ents)
if(editmode)
{
entity &e = ents[i];
if(e.type==NOTUSED) continue;
vec v(e.x, e.y, e.z);
particle_splash(2, 2, 40, v);
loopv(ents)
{
entity &e = ents[i];
if(e.type==NOTUSED) continue;
vec v(e.x, e.y, e.z);
particle_splash(2, 2, 40, v);
}
}
loopv(ents)
{
@@ -188,12 +191,14 @@ void resetspawns()
{
loopv(ents) ents[i].spawned = false;
if(m_noitemsnade || m_pistol)
{
loopv(ents)
{
entity &e = ents[i];
if(m_noitemsnade && e.type == I_CLIPS) e.type = I_GRENADE;
else if(m_pistol && e.type==I_AMMO) e.type = I_CLIPS;
}
}
}
void setspawn(int i, bool on) { if(ents.inrange(i)) ents[i].spawned = on; }