From b109a1d0955255747b6d3a0a18b2252fbb8cbdda Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 9 Feb 2004 23:28:12 +0000 Subject: [PATCH] Kleine Korrektur. --- src/common/kernel/combatspells.c | 14 +++++++------- src/scripts/default.lua | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/kernel/combatspells.c b/src/common/kernel/combatspells.c index 7aae2ab53..ec60a0aac 100644 --- a/src/common/kernel/combatspells.c +++ b/src/common/kernel/combatspells.c @@ -758,7 +758,7 @@ sp_shadowcall(fighter * fi, int level, double power, spell * sp) region *r = b->region; unit *mage = fi->unit; attrib *a; - double force = get_force(power, 3)/2; + int force = (int)(get_force(power, 3)/2); const race *rc = NULL; int num; unit *u; @@ -780,7 +780,7 @@ sp_shadowcall(fighter * fi, int level, double power, spell * sp) break; } - u = createunit(r, mage->faction, (int)force, rc); + u = createunit(r, mage->faction, force, rc); u->status = ST_FIGHT; set_string(&u->name, racename(mage->faction->locale, u, u->race)); @@ -810,8 +810,8 @@ sp_wolfhowl(fighter * fi, int level, double power, spell * sp) region *r = b->region; unit *mage = fi->unit; attrib *a; - double force = get_force(power, 3)/2; - unit *u = createunit(r, mage->faction, (int)force, new_race[RC_WOLF]); + int force = (int)(get_force(power, 3)/2); + unit *u = createunit(r, mage->faction, force, new_race[RC_WOLF]); unused(sp); u->status = ST_FIGHT; @@ -844,11 +844,11 @@ sp_shadowknights(fighter * fi, int level, double power, spell * sp) region *r = b->region; unit *mage = fi->unit; attrib *a; - double force = get_force(power, 3); + int force = (int)get_force(power, 3); - unused(sp); + unused(sp); - u = createunit(r, mage->faction, (int)force, new_race[RC_SHADOWKNIGHT]); + u = createunit(r, mage->faction, force, new_race[RC_SHADOWKNIGHT]); u->status = ST_FIGHT; set_string(&u->name, "Schattenritter"); diff --git a/src/scripts/default.lua b/src/scripts/default.lua index 1facdc709..0bd0778b3 100644 --- a/src/scripts/default.lua +++ b/src/scripts/default.lua @@ -9,7 +9,7 @@ function write_emails() local faction for faction in factions() do - print(faction.id .. " - " .. faction.locale) + -- print(faction.id .. " - " .. faction.locale) files[faction.locale]:write(faction.email .. "\n") end