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.31 by root, Tue May 6 15:38:10 2008 UTC vs.
Revision 1.34 by root, Tue May 6 16:55:26 2008 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 (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
191 { 191 {
192 op->failmsg (format ("You need the skill %s to cast %s!", &spob->skill, &spob->name)); 192 op->failmsg (format ("You need the skill %s to cast %s!", &spob->skill, &spob->name));
193 return 1; 193 return 1;
194 } 194 }
195 195
196 splay (spob);
197
196 if (castnow) 198 if (castnow)
197 cast_spell (op, op, op->facing, spob, cp); 199 cast_spell (op, op, op->facing, spob, cp);
198 else 200 else
199 { 201 {
202 if (op->contr->ranged_ob)
200 if (op->contr->ranged_ob && op->contr->ranged_ob->flag [FLAG_APPLIED]) 203 if (op->contr->ranged_ob->flag [FLAG_APPLIED])
201 apply_special (op, op->contr->ranged_ob, AP_UNAPPLY); 204 apply_special (op, op->contr->ranged_ob, AP_UNAPPLY);
205 else
206 op->contr->ranged_ob = 0;
202 207
203 if (op->contr->ranged_ob) 208 if (op->contr->ranged_ob)
204 op->failmsg (format ("You have to unapply the %s first to ready a spell.", &op->contr->ranged_ob->name)); 209 op->failmsg (format ("You have to unapply the %s first to ready a spell.", &op->contr->ranged_ob->name));
205 else 210 else
206 { 211 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines