[Scummvm-cvs-logs] SF.net SVN: scummvm: [29083] scummvm/trunk/engines/agi/preagi_winnie.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Mon Sep 24 03:27:22 CEST 2007


Revision: 29083
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29083&view=rev
Author:   mthreepwood
Date:     2007-09-23 18:27:22 -0700 (Sun, 23 Sep 2007)

Log Message:
-----------
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)

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi_winnie.cpp

Modified: scummvm/trunk/engines/agi/preagi_winnie.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-09-24 00:32:24 UTC (rev 29082)
+++ scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-09-24 01:27:22 UTC (rev 29083)
@@ -152,7 +152,7 @@
 	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 @@
 		
 		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) {


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