gcc warning fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1662 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-02-17 09:03:32 +00:00
parent 16329dbd98
commit 34495cad86
+4 -4
View File
@@ -315,12 +315,12 @@ void flagdropped(int flag, int action, short x, short y, short z)
p.rotspeed = 0.0f;
p.o.x = x;
p.o.y = y;
p.o.z = (short)floor(x, y);
p.o.z = floor(x, y);
p.vel.z = -1.0f;
loopi(50) moveplayer(&p, 50, true); // calc drop position
f.flag->x = p.o.x;
f.flag->y = p.o.y;
f.flag->z = p.o.z;
f.flag->x = (short)p.o.x;
f.flag->y = (short)p.o.y;
f.flag->z = (short)p.o.z;
if(f.flag->z < hdr.waterlevel) f.flag->z = (short) hdr.waterlevel;
f.flag->spawned = true;
f.ack = true;