git repos / blockattack-game

commit 1538e934

sago007 · 2016-04-16 13:13
1538e934d93f81f0afed9ff5a96884e6777d571d patch · browse files
parent 87a0a1db49db9ee92f0847c9588646edb44b6c67

srand are not used anymore as the BlockGame objects have there own internal random generator

Changed files

M source/code/BlockGame.cpp before
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index fb7264e..fa940b9 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp
@@ -80,7 +80,6 @@ int BlockGame::firstUnusedChain() {
//Constructor
BlockGame::BlockGame() {
- srand((int)time(nullptr));
AI_MoveSpeed=100;
baseSpeed = 0.5; //All other speeds are relative to this
speed = baseSpeed;