[Scummvm-cvs-logs] SF.net SVN: scummvm:[34152] scummvm/trunk/engines/agi/preagi.h
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Mon Aug 25 16:55:14 CEST 2008
Revision: 34152
http://scummvm.svn.sourceforge.net/scummvm/?rev=34152&view=rev
Author: thebluegr
Date: 2008-08-25 14:55:11 +0000 (Mon, 25 Aug 2008)
Log Message:
-----------
Fix for bug #2073159 - "MICKEY: Incomplete computer message".
Random numbers are calculated from 1 onwards in the preAGI engines, but there was an off-by one error. I'm currently hesitant to add this fix to the 0.12.0 branch, as I'm unsure if it has any possible regressions in Troll's Tale or Winnie the Pooh
Modified Paths:
--------------
scummvm/trunk/engines/agi/preagi.h
Modified: scummvm/trunk/engines/agi/preagi.h
===================================================================
--- scummvm/trunk/engines/agi/preagi.h 2008-08-25 14:01:39 UTC (rev 34151)
+++ scummvm/trunk/engines/agi/preagi.h 2008-08-25 14:55:11 UTC (rev 34152)
@@ -73,7 +73,7 @@
// Keyboard
int getSelection(SelectionTypes type);
- int rnd(int hi) { return (_rnd->getRandomNumber(hi) + 1); }
+ int rnd(int hi) { return (_rnd->getRandomNumber(hi - 1) + 1); }
// Text
void drawStr(int row, int col, int attr, const char *buffer);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list