From 106fb6de1cf3523c10197dc8e02ec44e94523f18 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 1 May 2007 14:47:53 +0000 Subject: Type safety, cast cleanups, etc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1401 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 9bdc1021ec..1772b2ce0a 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -1949,7 +1949,7 @@ static int place_monster_vector(std::vector montypes, int not_used = 0; for (int i = 0; i < num_to_place; i++) { - if (place_monster( not_used, montypes[random2((int)montypes.size())], + if (place_monster( not_used, montypes[random2(montypes.size())], level_number, BEH_SLEEP, MHITNOT, false, 1, 1, true, PROX_ANYWHERE, 250, 0, no_monster_zones )) @@ -3186,7 +3186,7 @@ static void dngn_place_item_explicit(int index, int x, int y, { item_list &sitems = place.map.items; - if (index < 0 || index >= (int) sitems.size()) + if (index < 0 || index >= static_cast(sitems.size())) { // Non-fatal, but we warn even in non-debug mode so there's incentive // to fix the problem. -- cgit v1.2.3-54-g00ecf