dead code und unbenutzte Variablen entfernt
Change-Id: I18b5d6a8cdf221d3a376541c01e82a1c64f10508
diff --git a/std/spellbook.c b/std/spellbook.c
index ac9031a..8ef27d1 100644
--- a/std/spellbook.c
+++ b/std/spellbook.c
@@ -162,13 +162,12 @@
varargs int
TryDefaultAttackSpell(object victim, object caster, mapping sinfo,
mixed si_spell) {
- object team;
int row;
if (!si_spell) si_spell=sinfo[SI_SPELL];
// Wenn der Spieler in einem Team ist, die Teamreihen-Boni
// beruecksichtigen. Wenn nicht, eben nicht.
- if (!team=(({object})caster->QueryProp(P_TEAM)))
+ if (!({object})caster->QueryProp(P_TEAM))
return TryAttackSpell(victim,
GetRandFValueO(SI_SKILLDAMAGE,sinfo,caster),
GetData(SI_SKILLDAMAGE_TYPE,sinfo,caster),
@@ -299,7 +298,7 @@
varargs int
UseSpell(object caster, string spell, mapping sinfo) {
mapping ski,tmp;
- string spellbook,sname,fname,txt;
+ string sname,fname,txt;
int res,fat,cost;
mixed ps;