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.3 by root, Sun Sep 10 15:59:57 2006 UTC vs.
Revision 1.10 by root, Mon May 28 21:28:35 2007 UTC

1
2/* 1/*
3 * static char *rcsid_c_move_c = 2 * This file is part of Crossfire TRT, the Roguelike Realtime MORPG.
4 * "$Id: c_move.C,v 1.3 2006/09/10 15:59:57 root Exp $"; 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 *
8 * Crossfire TRT is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 * for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
20 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * The authors can be reached via e-mail to <crossfire@schmorp.de>
5 */ 23 */
6 24
7/*
8 CrossFire, A Multiplayer game for X-windows
9
10 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
11 Copyright (C) 1992 Frank Tore Johansen
12
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27 The author can be reached via e-mail to crossfire-devel@real-time.com
28*/
29
30#include <global.h> 25#include <global.h>
31#ifndef __CEXTRACT__
32# include <sproto.h> 26#include <sproto.h>
33#endif
34#include <skills.h> 27#include <skills.h>
35 28
36static int 29static int
37move_internal (object *op, char *params, int dir) 30move_internal (object *op, char *params, int dir)
38{ 31{
49 } 42 }
50 } 43 }
51 else if (params[0] == 'r' && !op->contr->run_on) 44 else if (params[0] == 'r' && !op->contr->run_on)
52 op->contr->run_on = 1; 45 op->contr->run_on = 1;
53 } 46 }
47
54 move_player (op, dir); 48 move_player (op, dir);
55 return 0; 49 return 0;
56} 50}
57 51
58int 52int
101command_west (object *op, char *params) 95command_west (object *op, char *params)
102{ 96{
103 return move_internal (op, params, 7); 97 return move_internal (op, params, 7);
104} 98}
105 99
100// XXX: What does this do?
106int 101int
107command_stay (object *op, char *params) 102command_stay (object *op, char *params)
108{ 103{
109 if (!op->contr->fire_on && (!params || params[0] != 'f')) 104 if (!op->contr->fire_on && (!params || params[0] != 'f'))
110 return 0; 105 return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines