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.24 by root, Sat May 12 08:36:35 2007 UTC vs.
Revision 1.25 by root, Sat May 12 16:06:42 2007 UTC

223change_spell (object *op, char k) 223change_spell (object *op, char k)
224{ 224{
225 if (op->contr->combat_ob == op->current_weapon) 225 if (op->contr->combat_ob == op->current_weapon)
226 { 226 {
227 if (op->contr->ranged_ob) 227 if (op->contr->ranged_ob)
228 op->set_weapon (op->contr->ranged_ob); 228 op->change_weapon (op->contr->ranged_ob);
229 } 229 }
230 else if (op->contr->ranged_ob == op->current_weapon) 230 else if (op->contr->ranged_ob == op->current_weapon)
231 { 231 {
232 if (op->contr->combat_ob) 232 if (op->contr->combat_ob)
233 op->set_weapon (op->contr->combat_ob); 233 op->change_weapon (op->contr->combat_ob);
234 } 234 }
235 235
236 //TODO: maybe switch to golem, if any? 236 //TODO: maybe switch to golem, if any?
237} 237}
238 238

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines