no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@774 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-12-09 14:57:51 +00:00
parent 7a8221ed3c
commit e5637db96c
4 changed files with 12 additions and 29 deletions
+3 -23
View File
@@ -430,8 +430,9 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
f.flag->y = (ushort) (getint(p)/DMF);
f.flag->z = (ushort) (getint(p)/DMF);
f.flag->z -= 4;
float floor = (float)S(f.flag->x, f.flag->y)->floor;
sqr *dropplace = S_SECURE(f.flag->x, f.flag->y);
if(!dropplace) return;
float floor = (float)dropplace->floor;
if(f.flag->z > hdr.waterlevel) // above water
{
if(floor < hdr.waterlevel)
@@ -521,24 +522,3 @@ void localservertoclient(int chan, uchar *buf, int len) // processes any updat
break;
};
};
void test1(int x, int y)
{
conoutf("mipsize %i", mipsize);
conoutf("world : %i %i %i", sizeof(world), sizeof(world[0]), sizeof(&world) / sizeof(world[0]));
sqr *q = S_SECURE(x, y);
if(q)
conoutf("%i\n", q->floor);
else conoutf("invalid!");
};
COMMAND(test1, ARG_2INT);
void test2()
{
conoutf("%f %f %f", player1->o.x, player1->o.y, (float) S((ushort)(player1->o.x), (ushort)(player1->o.y))->floor);
};
COMMAND(test2, ARG_NONE);