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.25 by root, Sat May 12 16:06:42 2007 UTC

196 196
197 if (castnow) 197 if (castnow)
198 cast_spell (op, op, op->facing, spob, cp); 198 cast_spell (op, op, op->facing, spob, cp);
199 else 199 else
200 { 200 {
201 if (op->contr->ranged_ob)
202 apply_special (op, op->contr->ranged_ob, AP_UNAPPLY);
203
204 op->contr->ranged_ob = spob; 201 op->contr->ranged_ob = spob;
205 202
206 assign (op->contr->spellparam, cp ? cp : ""); 203 assign (op->contr->spellparam, cp ? cp : "");
207 new_draw_info_format (NDI_UNIQUE, 0, op, "You ready the spell %s", &spob->name); 204 new_draw_info_format (NDI_UNIQUE, 0, op, "You ready the spell %s", &spob->name);
208 } 205 }
223/**************************************************************************/ 220/**************************************************************************/
224 221
225void 222void
226change_spell (object *op, char k) 223change_spell (object *op, char k)
227{ 224{
225 if (op->contr->combat_ob == op->current_weapon)
226 {
227 if (op->contr->ranged_ob)
228 op->change_weapon (op->contr->ranged_ob);
229 }
230 else if (op->contr->ranged_ob == op->current_weapon)
231 {
232 if (op->contr->combat_ob)
233 op->change_weapon (op->contr->combat_ob);
234 }
235
228 //TODO: maybe switch to golem, if any? 236 //TODO: maybe switch to golem, if any?
229 // does nothing
230} 237}
231 238
232int 239int
233command_rotateshoottype (object *op, char *params) 240command_rotateshoottype (object *op, char *params)
234{ 241{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines