no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@761 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-12-03 19:56:24 +00:00
parent ac9d1148c7
commit 7decc11a6b
8 changed files with 59 additions and 15 deletions
+20
View File
@@ -427,6 +427,7 @@ 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;
if(f.flag->z > hdr.waterlevel) // above water
{
@@ -505,3 +506,22 @@ void localservertoclient(int chan, uchar *buf, int len) // processes any updat
};
};
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);