1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: request.C,v 1.9 2006/08/24 17:29:30 root Exp $"; |
3 | * "$Id: request.C,v 1.11 2006/08/29 07:34:01 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
233 | socket.current_y = ob->y; |
233 | socket.current_y = ob->y; |
234 | } |
234 | } |
235 | |
235 | |
236 | void ExtCmd (char *buf, int len, player *pl) |
236 | void ExtCmd (char *buf, int len, player *pl) |
237 | { |
237 | { |
238 | execute_global_event (EVENT_EXTCMD, pl, buf, len); |
238 | INVOKE_PLAYER (EXTCMD, pl, ARG_DATA (buf, len)); |
239 | } |
239 | } |
240 | |
240 | |
241 | void MapInfoCmd (char *buf, int len, player *pl) |
241 | void MapInfoCmd (char *buf, int len, player *pl) |
242 | { |
242 | { |
243 | // <mapinfo tag spatial tile-path |
243 | // <mapinfo tag spatial tile-path |
… | |
… | |
1991 | if (pl->type != PLAYER) { |
1991 | if (pl->type != PLAYER) { |
1992 | LOG(llevError,"draw_client_map called with non player/non eric-server\n"); |
1992 | LOG(llevError,"draw_client_map called with non player/non eric-server\n"); |
1993 | return; |
1993 | return; |
1994 | } |
1994 | } |
1995 | |
1995 | |
1996 | if (pl->contr->transport) { |
|
|
1997 | pm = pl->contr->transport->map; |
|
|
1998 | } |
|
|
1999 | else |
|
|
2000 | pm = pl->map; |
1996 | pm = pl->map; |
2001 | |
1997 | |
2002 | /* If player is just joining the game, he isn't here yet, so the map |
1998 | /* If player is just joining the game, he isn't here yet, so the map |
2003 | * can get swapped out. If so, don't try to send them a map. All will |
1999 | * can get swapped out. If so, don't try to send them a map. All will |
2004 | * be OK once they really log in. |
2000 | * be OK once they really log in. |
2005 | */ |
2001 | */ |