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

Comparing deliantra/server/server/spell_util.C (file contents):
Revision 1.12 by root, Mon Sep 11 20:26:41 2006 UTC vs.
Revision 1.13 by root, Tue Sep 12 17:23:02 2006 UTC

1
2/*
3 * static char *rcsid_spell_util_c =
4 * "$Id: spell_util.C,v 1.12 2006/09/11 20:26:41 root Exp $";
5 */
6
7
8/* 1/*
9 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
10 3
11 Copyright (C) 2001 Mark Wedel & Crossfire Development Team 4 Copyright (C) 2001 Mark Wedel & Crossfire Development Team
12 Copyright (C) 1992 Frank Tore Johansen 5 Copyright (C) 1992 Frank Tore Johansen
1125 */ 1118 */
1126 1119
1127int 1120int
1128cast_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg) 1121cast_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg)
1129{ 1122{
1130
1131 const char *godname; 1123 const char *godname;
1132 int success = 0, mflags, cast_level = 0, old_shoottype; 1124 int success = 0, mflags, cast_level = 0, old_shoottype;
1133 object *skill = NULL; 1125 object *skill = NULL;
1134 1126
1135 old_shoottype = op->contr ? op->contr->shoottype : 0; 1127 old_shoottype = op->contr ? op->contr->shoottype : 0;
1137 if (!spell_ob) 1129 if (!spell_ob)
1138 { 1130 {
1139 LOG (llevError, "cast_spell: null spell object passed\n"); 1131 LOG (llevError, "cast_spell: null spell object passed\n");
1140 return 0; 1132 return 0;
1141 } 1133 }
1134
1142 if (!strcmp ((godname = determine_god (op)), "none")) 1135 if (!strcmp ((godname = determine_god (op)), "none"))
1143 godname = "A random spirit"; 1136 godname = "A random spirit";
1144 1137
1145 /* the caller should set caster to op if appropriate */ 1138 /* the caller should set caster to op if appropriate */
1146 if (!caster) 1139 if (!caster)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines