diff --git a/src/spells.c b/src/spells.c index 953b90533..847e4bf50 100644 --- a/src/spells.c +++ b/src/spells.c @@ -1307,7 +1307,7 @@ static int sp_rosthauch(castorder * co) for (; iweapon != NULL; iweapon = iweapon->next) { item **ip = i_find(&u->items, iweapon->type); if (*ip) { - float chance = (*ip)->number; + double chance = (*ip)->number; if (chance > force) chance = force; if (iweapon->chance < 1.0) { chance *= iweapon->chance; @@ -4158,7 +4158,8 @@ static int sp_seduce(castorder * co) loot += rng_int() % 2; } if (loot > 0) { - if (loot > 5 * force) loot = 5 * force; + int floot = (int)(5 * force); + if (loot > floot) loot = floot; } } if (loot > 0) { diff --git a/src/util/message.c b/src/util/message.c index 831ab23f8..737519585 100644 --- a/src/util/message.c +++ b/src/util/message.c @@ -11,6 +11,9 @@ */ +#ifdef _MSC_VER +#include +#endif #include "message.h" #include "strings.h" diff --git a/src/util/variant.c b/src/util/variant.c index dd8b16151..885228847 100644 --- a/src/util/variant.c +++ b/src/util/variant.c @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#include +#endif + #include "variant.h" #include