warning fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3275 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-26 09:34:38 +00:00
parent b456f8ba0d
commit 3610371f1d
5 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -248,7 +248,7 @@ void checkitems(playerent *d)
flaginfo &f = flaginfos[i];
entity &e = *f.flagent;
if(!e.spawned || !f.ack || (f.state == CTFF_INBASE && !numflagspawn[i])) continue;
if(OUTBORD(int(f.pos.x), int(f.pos.y))) continue;
if(OUTBORD(f.pos.x, f.pos.y)) continue;
if(f.state==CTFF_DROPPED) // 3d collision for dropped ctf flags
{
if(objcollide(d, f.pos, 2.5f, 4.0f)) trypickupflag(i, d);
@@ -371,7 +371,7 @@ void flagstolen(int flag, int act)
f.ack = true;
}
void flagdropped(int flag, short x, short y, short z)
void flagdropped(int flag, float x, float y, float z)
{
flaginfo &f = flaginfos[flag];
if(OUTBORD(x, y)) return; // valid pos