[Scummvm-cvs-logs] SF.net SVN: scummvm: [28825] scummvm/trunk/engines/agi/agi.h
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Sep 2 17:19:20 CEST 2007
Revision: 28825
http://scummvm.svn.sourceforge.net/scummvm/?rev=28825&view=rev
Author: thebluegr
Date: 2007-09-02 08:19:20 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
Removed rand() and substituted it with Common::RandomSource
Modified Paths:
--------------
scummvm/trunk/engines/agi/agi.h
Modified: scummvm/trunk/engines/agi/agi.h
===================================================================
--- scummvm/trunk/engines/agi/agi.h 2007-09-02 15:17:41 UTC (rev 28824)
+++ scummvm/trunk/engines/agi/agi.h 2007-09-02 15:19:20 UTC (rev 28825)
@@ -1000,7 +1000,7 @@
int getSelection(int type);
bool waitAnyKeyChoice();
void waitAnyKey(bool anim = false);
- int rnd(int hi) { return (rand() % hi + 1); }
+ int rnd(int hi) { return (_rnd->getRandomNumber(hi) + 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