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:
+5
-14
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user