… | |
… | |
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 | }; |
88 | const int CommandsSize = sizeof (Commands) / sizeof (CommArray_s); |
88 | const int CommandsSize = sizeof (Commands) / sizeof (CommArray_s); |
89 | |
89 | |
90 | CommArray_s CommunicationCommands[] = { |
|
|
91 | {"printlos", command_printlos, 0.0}, |
|
|
92 | }; |
|
|
93 | const int CommunicationCommandSize = sizeof (CommunicationCommands) / sizeof (CommArray_s); |
|
|
94 | |
|
|
95 | /* |
90 | /* |
96 | * Wizard commands (for both) |
91 | * Wizard commands (for both) |
97 | */ |
92 | */ |
98 | CommArray_s WizCommands[] = { |
93 | CommArray_s WizCommands[] = { |
99 | {"abil", command_abil, 0.0}, |
94 | {"abil", command_abil, 0.0}, |
… | |
… | |
136 | |
131 | |
137 | void |
132 | void |
138 | init_commands (void) |
133 | init_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 | |