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.74 by root, Sun Jan 29 02:47:05 2017 UTC vs.
Revision 1.76 by root, Sat Dec 1 20:22:13 2018 UTC

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 (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 5 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team 6 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 7 * Copyright (©) 1992 Frank Tore Johansen
7 * 8 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 9 * Deliantra is free software: you can redistribute it and/or modify it under
89 {"run" , command_run , 0.0}, 90 {"run" , command_run , 0.0},
90 {"run_stop" , command_run_stop , 0.0}, 91 {"run_stop" , command_run_stop , 0.0},
91 {"fire" , command_fire , 0.0}, 92 {"fire" , command_fire , 0.0},
92 {"fire_stop", command_fire_stop, 0.0}, 93 {"fire_stop", command_fire_stop, 0.0},
93}; 94};
94static const int CommandsSize = array_length (Commands); 95static const int CommandsSize = ecb_array_length (Commands);
95 96
96/* 97/*
97 * Wizard commands (for both) 98 * Wizard commands (for both)
98 */ 99 */
99static CommArray_s WizCommands[] = { 100static CommArray_s WizCommands[] = {
121 {"stack_push", command_stack_push, 0.0}, 122 {"stack_push", command_stack_push, 0.0},
122 {"stats", command_stats, 0.0}, 123 {"stats", command_stats, 0.0},
123 {"summon", command_summon, 0.0}, 124 {"summon", command_summon, 0.0},
124 //{"overlay_save", command_save_overlay, 0.0}, 125 //{"overlay_save", command_save_overlay, 0.0},
125}; 126};
126static const int WizCommandsSize = array_length (WizCommands); 127static const int WizCommandsSize = ecb_array_length (WizCommands);
127 128
128static int 129static int
129compare_A (const void *a, const void *b) 130compare_A (const void *a, const void *b)
130{ 131{
131 return strcmp (((CommArray_s *)a)->name, ((CommArray_s *)b)->name); 132 return strcmp (((CommArray_s *)a)->name, ((CommArray_s *)b)->name);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines