stuck-test on flagdrop

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2329 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-08-16 09:11:27 +00:00
parent 0e635ece6b
commit e0c2c29994
3 changed files with 10 additions and 5 deletions
+5 -1
View File
@@ -331,7 +331,11 @@ void flagdropped(int flag, int action, short x, short y, short z)
p.o.y = y;
p.o.z = z;
p.vel.z = -0.8f;
loopi(20) moveplayer(&p, 10, true, 50); // calc drop position
loopi(100)
{
moveplayer(&p, 10, true, 50); // calc drop position
if(p.stuck) break;
}
f.flag->x = (short)p.o.x;
f.flag->y = (short)p.o.y;
f.flag->z = (short)p.o.z;