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

Comparing deliantra/server/server/commands.C (file contents):
Revision 1.54 by root, Fri Aug 29 02:12:25 2008 UTC vs.
Revision 1.55 by root, Fri Dec 19 22:47:30 2008 UTC

85 {"southwest", command_southwest, 0.0}, 85 {"southwest", command_southwest, 0.0},
86 {"northwest", command_northwest, 0.0}, 86 {"northwest", command_northwest, 0.0},
87}; 87};
88const int CommandsSize = sizeof (Commands) / sizeof (CommArray_s); 88const int CommandsSize = sizeof (Commands) / sizeof (CommArray_s);
89 89
90CommArray_s CommunicationCommands[] = {
91 {"printlos", command_printlos, 0.0},
92};
93const int CommunicationCommandSize = sizeof (CommunicationCommands) / sizeof (CommArray_s);
94
95/* 90/*
96 * Wizard commands (for both) 91 * Wizard commands (for both)
97 */ 92 */
98CommArray_s WizCommands[] = { 93CommArray_s WizCommands[] = {
99 {"abil", command_abil, 0.0}, 94 {"abil", command_abil, 0.0},
136 131
137void 132void
138init_commands (void) 133init_commands (void)
139{ 134{
140 qsort (Commands, CommandsSize, sizeof (CommArray_s), compare_A); 135 qsort (Commands, CommandsSize, sizeof (CommArray_s), compare_A);
141 qsort (CommunicationCommands, CommunicationCommandSize, sizeof (CommArray_s), compare_A);
142 qsort (WizCommands, WizCommandsSize, sizeof (CommArray_s), compare_A); 136 qsort (WizCommands, WizCommandsSize, sizeof (CommArray_s), compare_A);
143} 137}
144 138

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines