From f983fa5077a07e720331013f66ec24e0d0823423 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 14 Apr 2002 11:05:04 +0000 Subject: [PATCH] - Crashfix, luck abgeschaltet --- src/common/gamecode/luck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/gamecode/luck.c b/src/common/gamecode/luck.c index 5bc2b2fd2..53e997ecd 100644 --- a/src/common/gamecode/luck.c +++ b/src/common/gamecode/luck.c @@ -53,7 +53,7 @@ #include #include -const int STANDARD_LUCK = 2; +const int STANDARD_LUCK = 0; extern struct item_type *i_silver; @@ -64,7 +64,7 @@ lucky_silver(const unit *u) int luck = fspecial(u->faction, FS_LUCKY); do { - r = 1000 + rand()%(10000*luck); + r = 1 + rand()%(10000*(luck+STANDARD_LUCK)); if(r > max) max = r; i++; } while(i <= luck);