From 69b1485a22dc2b8a2cfe0bd10edcbaad0da0cf6e Mon Sep 17 00:00:00 2001 From: strangerke Date: Thu, 12 May 2011 01:13:57 +0200 Subject: GIT: Clean up: Suppress SVN tags, now useless --- engines/lure/scripts.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'engines/lure/scripts.cpp') diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 20cbd328ce..5a5a311ff0 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -18,9 +18,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * $URL$ - * $Id$ - * */ #include "lure/animseq.h" -- cgit v1.2.3 From 4cbe4ede66e65ec9289811eca2f5f62285174c8d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 16 May 2011 16:35:10 +0200 Subject: COMMON: Registers RandomSources in constructor with the event recorder This also removes the dependency of engines on the event recorder header and API, and will make it easier to RandomSources that are not properly registered. --- engines/lure/scripts.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'engines/lure/scripts.cpp') diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 5a5a311ff0..7cd8be43d2 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -31,7 +31,6 @@ #include "lure/sound.h" #include "common/stack.h" #include "common/endian.h" -#include "common/EventRecorder.h" namespace Lure { -- cgit v1.2.3 From 64bcb731bf0b28d9bf1391ac265ea47ba0a2f374 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 17 May 2011 12:31:21 +0200 Subject: LURE: Rename method random() -> getRandom() Also get rid of a slight bias for 0 in the random numbers (it was selected twice as often as any other number). --- engines/lure/scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/lure/scripts.cpp') diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 7cd8be43d2..22656dd3fe 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -1127,7 +1127,7 @@ uint16 Script::execute(uint16 startOffset) { break; case S_OPCODE_RANDOM: - param = r.random() >> 8; // make number between 0 to 255 + param = r.getRandom() >> 8; // make number between 0 to 255 break; case S_OPCODE_END: -- cgit v1.2.3