From 8bdfd086f9ee4df7ec3f3f687d9319aa627f1bc1 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 17 Dec 2007 21:51:43 +0000 Subject: [PATCH] =?UTF-8?q?http://eressea.upb.de/mantis/view.php=3Fid=3D13?= =?UTF-8?q?12=20"Ereignistext=20bei=20Beschw=C3=B6rung=20von=20Schattend?= =?UTF-8?q?=C3=A4monen=20falsch"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/spells/spells.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/spells/spells.c b/src/common/spells/spells.c index bf464d7b8..c168d738b 100644 --- a/src/common/spells/spells.c +++ b/src/common/spells/spells.c @@ -3364,9 +3364,9 @@ sp_summonshadow(castorder *co) int cast_level = co->level; double force = co->force; unit *u; - int val; + int val, number = (int)(force*force); - u = create_unit(r, mage->faction, (int)(force*force), new_race[RC_SHADOW], 0, NULL, mage); + u = create_unit(r, mage->faction, number, new_race[RC_SHADOW], 0, NULL, mage); /* Bekommen Tarnung = (Magie+Tarnung)/2 und Wahrnehmung 1. */ val = get_level(mage, SK_MAGIC) + get_level(mage, SK_STEALTH); @@ -3375,7 +3375,7 @@ sp_summonshadow(castorder *co) set_level(u, SK_OBSERVATION, 1); ADDMSG(&mage->faction->msgs, msg_message("summonshadow_effect", - "mage number", mage, force*force)); + "mage number", mage, number)); return cast_level; }