Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for missing check_skill_to_fire()



This patch is already in the CVS tree.  From the CHANGES file:

server/input.c: command_cast_spell():  Bugfix: Call check_skill_to_fire()
even for wizards because this function has the important side effect
of setting the current skill and experience objects.

-- 
Jan
--- orig/crossfire-0.95.5-cvs3-patch29/server/input.c	Fri May 26 11:50:49 2000
+++ crossfire-0.95.5-cvs3/server/input.c	Sun Jun 18 23:39:59 2000
@@ -802,7 +802,7 @@
 	    rangetype orig_rangetype=op->contr->shoottype;
 	    op->contr->shoottype=range_magic;
 #ifdef ALLOW_SKILLS 
-	    if(op->type==PLAYER&&!QUERY_FLAG(op,FLAG_WIZ)) { 
+	    if(op->type==PLAYER) { 
 		 /* if we don't change to the correct spell numb,
 		  * check_skill_to_fire will be confused as to which
 		  * spell casting skill to ready for the player!