no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1004 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-05-16 20:48:25 +00:00
parent 017d1c1d45
commit b8df666851
4 changed files with 13 additions and 16 deletions
+5 -14
View File
@@ -382,20 +382,11 @@ void flagstolen(int flag, int action, int act)
void flagdropped(int flag, int action, short x, short y, short z)
{
flaginfo &f = flaginfos[flag];
sqr *dropplace = S_SECURE(x, y);
if(!dropplace) return;
z -= 4;
float floor = (float) dropplace->floor;
if(z > hdr.waterlevel) // above water
{
if(floor < hdr.waterlevel) z = hdr.waterlevel; // avoid dropping into water
else z = (short) floor;
}
f.flag->x = x;
f.flag->y = y;
f.flag->z = z;
if(OUTBORD(x, y)) return;
f.flag->x = x;
f.flag->y = y;
f.flag->z = (short)floor(x, y);
if(f.flag->z < hdr.waterlevel) f.flag->z = (short) hdr.waterlevel;
f.flag->spawned = true;
f.ack = true;
flagmsg(flag, action);