git repos / blockattack-game

commit 7d43dc59

sago007 · 2016-08-31 21:26
7d43dc599d9bb5a9b77a527c9294cfa7a3c00738 patch · browse files
parent b69f7fad209e2c5f358cff0eeef74cf9da72b39e

Fixed wrong stop comparison

Changed files

M source/code/BlockGame.cpp before
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index dbff5b1..e8aebfe 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp
@@ -57,7 +57,7 @@ static string itoa2(int num) {
* @param gameStartedAt Tick the game was started at.
*/
static void capMaxStops(int& stops, unsigned int ticks, unsigned int gameStartedAt) {
- if (ticks < gameStartedAt || stops = 0) {
+ if (ticks < gameStartedAt || stops == 0) {
//Game not started or not stops, do nothing
return;
}