version 1.57 | | version 1.58 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.57 2004/01/20 14:52:52 tchize Exp $"; | | * "$Id: request.c,v 1.58 2004/01/21 08:12:05 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
AddIfShort(pl->last_stats.Cha, pl->ob->stats.Cha, CS_STAT_CHA); | | AddIfShort(pl->last_stats.Cha, pl->ob->stats.Cha, CS_STAT_CHA); |
} | | } |
if(pl->socket.exp64) { | | if(pl->socket.exp64) { |
char s; | | uint8 s; |
for(s=0;s<NUM_SKILLS;s++) { | | for(s=0;s<NUM_SKILLS;s++) { |
if (pl->last_skill_ob[s] && | | if (pl->last_skill_ob[s] && |
pl->last_skill_exp[s] != pl->last_skill_ob[s]->stats.exp) { | | pl->last_skill_exp[s] != pl->last_skill_ob[s]->stats.exp) { |
| | |
* set to lower values. | | * set to lower values. |
*/ | | */ |
if (ax >= pl->contr->socket.mapx || ay >= pl->contr->socket.mapy) { | | if (ax >= pl->contr->socket.mapx || ay >= pl->contr->socket.mapy) { |
| | int i, got_one; |
| | |
oldlen = sl.len; | | oldlen = sl.len; |
| | |
if (pl->contr->socket.ext_mapinfos){ | | if (pl->contr->socket.ext_mapinfos){ |
| | |
if (check_head(&sl, &pl->contr->socket, ax, ay, 0)) | | if (check_head(&sl, &pl->contr->socket, ax, ay, 0)) |
mask |= 0x1; | | mask |= 0x1; |
| | |
if (mask & 0xf) { | | /* If all we are doing is sending 0 (blank) faces, we don't |
| | * actually need to send that - just the coordinates |
| | * with no faces tells the client to blank out the |
| | * space. |
| | */ |
| | got_one=0; |
| | for (i=oldlen+2; i<sl.len; i++) { |
| | if (sl.buf[i]) got_one=1; |
| | } |
| | |
| | if (got_one && (mask & 0xf)) { |
sl.buf[oldlen+1] = mask & 0xff; | | sl.buf[oldlen+1] = mask & 0xff; |
} else { | | } else { |
sl.len = oldlen; | | sl.len = oldlen + 2; |
| | |
} | | } |
/*What concerns extendinfos, nothing to be done for now | | /*What concerns extendinfos, nothing to be done for now |
* (perhaps effects layer later) | | * (perhaps effects layer later) |