1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed compiler warning in createStep

This commit is contained in:
Zeno Rogue 2017-10-30 22:47:40 +01:00
parent 97367c02a6
commit 8dc2157811

View File

@ -193,14 +193,14 @@ heptagon *createStep(heptagon *h, int d) {
d = fixrot(d);
if(!h->move[0] && h->s != hsOrigin) {
// cheating:
int pard;
int pard=0;
if(S3 == 3)
pard = 3 + hrand(2);
else if(S3 == 4 && S7 == 5)
pard = 3; // to do: randomize
else if(S3 == 4)
pard = 3;
buildHeptagon(h, 0, h->distance < -1000 ? hsOrigin : hsA, pard);
buildHeptagon(h, 0, h->distance < -10000 ? hsOrigin : hsA, pard);
}
if(h->move[d]) return h->move[d];
if(h->s == hsOrigin) {