ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_move.C
(Generate patch)

Comparing deliantra/server/server/c_move.C (file contents):
Revision 1.1 by elmex, Sun Aug 13 17:16:03 2006 UTC vs.
Revision 1.2 by root, Tue Aug 29 08:01:37 2006 UTC

1/* 1/*
2 * static char *rcsid_c_move_c = 2 * static char *rcsid_c_move_c =
3 * "$Id: c_move.C,v 1.1 2006/08/13 17:16:03 elmex Exp $"; 3 * "$Id: c_move.C,v 1.2 2006/08/29 08:01:37 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
35static int move_internal (object *op, char *params, int dir) 35static int move_internal (object *op, char *params, int dir)
36{ 36{
37 if (params) { 37 if (params) {
38 if (params[0] == 'f') { 38 if (params[0] == 'f') {
39 if (!op->contr->fire_on) { 39 if (!op->contr->fire_on) {
40 op->contr->fire_on =1; 40 op->contr->fire_on =1;
41 move_player(op, dir); 41 move_player(op, dir);
42 op->contr->fire_on =0; 42 op->contr->fire_on =0;
43 return 0; 43 return 0;
44 } 44 }
45 } else if (params[0] == 'r' && !op->contr->run_on) 45 } else if (params[0] == 'r' && !op->contr->run_on)
46 op->contr->run_on =1; 46 op->contr->run_on =1;
47 } 47 }
48 move_player(op, dir); 48 move_player(op, dir);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines