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

Comparing deliantra/server/server/c_range.C (file contents):
Revision 1.22 by root, Fri May 11 20:06:33 2007 UTC vs.
Revision 1.23 by root, Fri May 11 21:41:55 2007 UTC

223/**************************************************************************/ 223/**************************************************************************/
224 224
225void 225void
226change_spell (object *op, char k) 226change_spell (object *op, char k)
227{ 227{
228 if (op->contr->combat_ob == op->current_weapon)
229 {
230 if (op->contr->ranged_ob)
231 op->set_weapon (op->contr->ranged_ob);
232 }
233 else if (op->contr->ranged_ob == op->current_weapon)
234 {
235 if (op->contr->combat_ob)
236 op->set_weapon (op->contr->combat_ob);
237 }
238
228 //TODO: maybe switch to golem, if any? 239 //TODO: maybe switch to golem, if any?
229 // does nothing
230} 240}
231 241
232int 242int
233command_rotateshoottype (object *op, char *params) 243command_rotateshoottype (object *op, char *params)
234{ 244{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines