git repos / blockattack-game

commit ce6b7121

sago007 · 2009-03-07 14:40
ce6b7121b54885dd5bb6fb6a4c87ba6a777ef062 patch · browse files
parent e03ae476cd05b129aaed342b9cb99d8a34510a9f

player 3 renamed to player 2, garbage now alternates between dropping 
left and right.


git-svn-id: https://blockattack.svn.sourceforge.net/svnroot/blockattack/trunk@69 9d7177f8-192b-0410-8f35-a16a89829b06

Changed files

M source/code/BlockGame.hpp before
M source/code/replay.cpp before
diff --git a/source/code/BlockGame.hpp b/source/code/BlockGame.hpp index 2852ecf..d791748 100644 --- a/source/code/BlockGame.hpp +++ b/source/code/BlockGame.hpp
@@ -801,11 +801,13 @@ public:
{
start=0;
end=start+wide;
+ bGarbageFallLeft = false;
}
else
{
start=6-wide;
end = 6;
+ bGarbageFallLeft = true;
}
for (int i = startPosition; i <startPosition+height; i++)
for (int j = start; j < end; j++) {
@@ -813,7 +815,7 @@ public:
}
nextGarbageNumber++;
if (nextGarbageNumber>999999) nextGarbageNumber = 10;
- bGarbageFallLeft = !(bGarbageFallLeft);
+ //bGarbageFallLeft = !(bGarbageFallLeft);
return true;
}
}
diff --git a/source/code/replay.cpp b/source/code/replay.cpp index 30b3cb3..b427e7b 100644 --- a/source/code/replay.cpp +++ b/source/code/replay.cpp
@@ -240,7 +240,7 @@ bool Replay::loadReplay2(string filename)
cout << "Only one player in replay" << endl;
return false;
}
- cout << "loading player 3" << endl;
+ cout << "loading player 2" << endl;
loadFile.read(reinterpret_cast<char*>(&nrOfFrames),sizeof(Uint32));
for (int i=0; (i<nrOfFrames);i++)
{