… | |
… | |
471 | |
471 | |
472 | ns->send_packet (cmdback); |
472 | ns->send_packet (cmdback); |
473 | } |
473 | } |
474 | |
474 | |
475 | /** |
475 | /** |
476 | * client requested an image. send it rate-limited |
|
|
477 | * before flushing. |
|
|
478 | */ |
|
|
479 | void |
|
|
480 | AskFaceCmd (char *buf, int len, client *ns) |
|
|
481 | { |
|
|
482 | ns->ixface.push_back (atoi (buf)); |
|
|
483 | } |
|
|
484 | |
|
|
485 | /** |
|
|
486 | * Tells client the picture it has to use |
|
|
487 | * to smooth a picture number given as argument. |
|
|
488 | */ |
|
|
489 | void |
|
|
490 | AskSmooth (char *buf, int len, client *ns) |
|
|
491 | { |
|
|
492 | ns->send_face (atoi (buf)); |
|
|
493 | ns->flush_fx (); |
|
|
494 | } |
|
|
495 | |
|
|
496 | /** |
|
|
497 | * This handles the general commands from the client (ie, north, fire, cast, |
476 | * This handles the general commands from the client (ie, north, fire, cast, |
498 | * etc.) |
477 | * etc.) |
499 | */ |
478 | */ |
500 | void |
479 | void |
501 | PlayerCmd (char *buf, int len, player *pl) |
480 | PlayerCmd (char *buf, int len, player *pl) |