diff options
author | Matthew Hoops | 2007-09-24 01:27:22 +0000 |
---|---|---|
committer | Matthew Hoops | 2007-09-24 01:27:22 +0000 |
commit | e37049cd2f75455e927dcea10ceea1847d87c9bc (patch) | |
tree | b787b8be574485661c1ebd3fe3cd54c108205a3e /engines | |
parent | 6107a9f8241630fadfd1a0d1f89621d563ff0d4d (diff) | |
download | scummvm-rg350-e37049cd2f75455e927dcea10ceea1847d87c9bc.tar.gz scummvm-rg350-e37049cd2f75455e927dcea10ceea1847d87c9bc.tar.bz2 scummvm-rg350-e37049cd2f75455e927dcea10ceea1847d87c9bc.zip |
ok, really get rid of "object 41" now -- didn't realize that the rnd function in preagi already adds 1... (DrMcCoy: I guess there was an object 42 before as well)
svn-id: r29083
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/preagi_winnie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp index f7ec987b88..c98f1fd6b6 100644 --- a/engines/agi/preagi_winnie.cpp +++ b/engines/agi/preagi_winnie.cpp @@ -152,7 +152,7 @@ void Winnie::randomize() { for (int i = 0; i < IDI_WTP_MAX_OBJ_MISSING; i++) { done = false; while (!done) { - iObj = _vm->rnd(IDI_WTP_MAX_OBJ - 1) + 1; + iObj = _vm->rnd(IDI_WTP_MAX_OBJ - 1); done = true; for (int j = 0; j < IDI_WTP_MAX_OBJ_MISSING; j++) { if (_game.iUsedObj[j] == iObj) { @@ -166,7 +166,7 @@ void Winnie::randomize() { done = false; while (!done) { - iRoom = _vm->rnd(IDI_WTP_MAX_ROOM_NORMAL) + 1; + iRoom = _vm->rnd(IDI_WTP_MAX_ROOM_NORMAL); done = true; for (int j = 0; j < IDI_WTP_MAX_ROOM_OBJ; j++) { if (_game.iObjRoom[j] == iRoom) { |