made the code compile with C++11 (not requiring C++14)

This commit is contained in:
Zeno Rogue
2018-01-05 17:18:37 +01:00
parent 87ee73e3be
commit 0dd5ed1505
5 changed files with 28 additions and 24 deletions
+2 -2
View File
@@ -658,9 +658,9 @@ void generateSnake(cell *c, int i) {
createMov(c2, i);
if(!inpair(c2->mov[i], cpair)) {
vector<int> goodsteps;
for(int i=0; i<c2->type; i++)
{for(int i=0; i<c2->type; i++)
if(inpair(c2->mov[i], cpair))
goodsteps.push_back(i);
goodsteps.push_back(i);}
if(!size(goodsteps)) break;
i = goodsteps[hrand(size(goodsteps))];
}