… | |
… | |
78 | cp++; |
78 | cp++; |
79 | } |
79 | } |
80 | |
80 | |
81 | csp = find_plugin_command (command, pl); |
81 | csp = find_plugin_command (command, pl); |
82 | |
82 | |
83 | if (!csp) |
|
|
84 | csp = find_command_element (command, NewServerCommands, NewServerCommandSize); |
83 | if (!csp) csp = find_command_element (command, NewServerCommands, NewServerCommandSize); |
85 | if (!csp) |
|
|
86 | csp = find_command_element (command, Commands, CommandsSize); |
84 | if (!csp) csp = find_command_element (command, Commands, CommandsSize); |
87 | if (!csp) |
|
|
88 | csp = find_command_element (command, CommunicationCommands, CommunicationCommandSize); |
85 | if (!csp) csp = find_command_element (command, CommunicationCommands, CommunicationCommandSize); |
89 | if (!csp && QUERY_FLAG (pl, FLAG_WIZ)) |
86 | if (!csp && QUERY_FLAG (pl, FLAG_WIZ)) |
90 | csp = find_command_element (command, WizCommands, WizCommandsSize); |
87 | csp = find_command_element (command, WizCommands, WizCommandsSize); |
91 | |
88 | |
92 | if (csp == NULL) |
89 | if (csp == NULL) |
93 | { |
90 | { |
… | |
… | |
106 | * but greater than -1. This is to improve the performance of the |
103 | * but greater than -1. This is to improve the performance of the |
107 | * new client/server. In theory, it shouldn't make much difference. |
104 | * new client/server. In theory, it shouldn't make much difference. |
108 | */ |
105 | */ |
109 | |
106 | |
110 | if (csp->time && pl->speed_left < -2.0) |
107 | if (csp->time && pl->speed_left < -2.0) |
111 | { |
|
|
112 | LOG (llevDebug, "execute_newclient_command: Player issued command that takes more time than he has left.\n"); |
108 | LOG (llevDebug, "execute_newclient_command: Player issued command that takes more time than he has left.\n"); |
113 | } |
109 | |
114 | return csp->func (pl, cp); |
110 | return csp->func (pl, cp); |
115 | } |
111 | } |
116 | |
112 | |
117 | int |
113 | int |
118 | command_run (object *op, char *params) |
114 | command_run (object *op, char *params) |