[Scummvm-git-logs] scummvm master -> a815c1dc9ebdb0526295c94f7d3bde14252919dd

Die4Ever 30947252+Die4Ever at users.noreply.github.com
Thu Oct 28 08:37:13 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a815c1dc9e GROOVIE: beehive fix hexDifference init


Commit: a815c1dc9ebdb0526295c94f7d3bde14252919dd
    https://github.com/scummvm/scummvm/commit/a815c1dc9ebdb0526295c94f7d3bde14252919dd
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2021-10-28T03:37:01-05:00

Commit Message:
GROOVIE: beehive fix hexDifference init

Changed paths:
    engines/groovie/logic/beehive.cpp


diff --git a/engines/groovie/logic/beehive.cpp b/engines/groovie/logic/beehive.cpp
index 05d581224c..2c5ae7104b 100644
--- a/engines/groovie/logic/beehive.cpp
+++ b/engines/groovie/logic/beehive.cpp
@@ -31,7 +31,7 @@ extern const int8 beehiveLogicTable2[800];
 }
 
 Common::Array<int> overrideMoves;
-int overrideIndex = 0;
+uint overrideIndex = 0;
 
 void BeehiveGame::overrideClick(byte *vars) {
 	if (overrideIndex >= overrideMoves.size())
@@ -70,6 +70,9 @@ void BeehiveGame::run(byte *scriptVariables) {
 	int8 v21, v22, v24;
 	int8 tempState[64];
 
+	// init hexDifference on every iteration
+	*hexDifference = 4;
+
 	switch (op) {
 	case 0:	// Init board's hexagons
 		memset(_beehiveState, 0, HEXCOUNT);




More information about the Scummvm-git-logs mailing list