From d395f8050da152cbaf1197032f2c2fdaef7b85b9 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 15 Jul 2006 00:18:36 +0000 Subject: [PATCH] Fix randvar git-svn-id: https://svn.eduke32.com/eduke32@221 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gameexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 9bd0815e7..ecf618aea 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -5984,7 +5984,7 @@ good: int i; insptr++; i=*insptr++; // ID of def - SetGameVarID(i, mulscale(krand(), *insptr++, 16), g_i, g_p ); + SetGameVarID(i, mulscale(krand(), *(insptr++)+1, 16), g_i, g_p ); break; } @@ -5993,7 +5993,7 @@ good: int i; insptr++; i=*insptr++; // ID of def - SetGameVarID(i, mulscale(rand(), *insptr++, 15), g_i, g_p ); + SetGameVarID(i, mulscale(rand(), *(insptr++)+1, 15), g_i, g_p ); break; }