1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
70 | cp++; |
70 | cp++; |
71 | } |
71 | } |
72 | |
72 | |
73 | if (!INVOKE_PLAYER (COMMAND, pl->contr, ARG_STRING (command), ARG_STRING (cp))) |
73 | if (!INVOKE_PLAYER (COMMAND, pl->contr, ARG_STRING (command), ARG_STRING (cp))) |
74 | { |
74 | { |
75 | csp = find_command_element (command, Commands, CommandsSize); |
75 | csp = find_command_element (command, Commands, CommandsSize); |
76 | if (!csp) csp = find_command_element (command, CommunicationCommands, CommunicationCommandSize); |
76 | |
77 | if (!csp && QUERY_FLAG (pl, FLAG_WIZ)) |
77 | if (!csp && QUERY_FLAG (pl, FLAG_WIZ)) |
78 | csp = find_command_element (command, WizCommands, WizCommandsSize); |
78 | csp = find_command_element (command, WizCommands, WizCommandsSize); |
79 | |
79 | |
80 | if (!csp) |
80 | if (!csp) |
81 | { |
81 | { |