mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-20 07:14:07 +00:00
fixed compiler warning in createStep
This commit is contained in:
parent
97367c02a6
commit
8dc2157811
@ -193,14 +193,14 @@ heptagon *createStep(heptagon *h, int d) {
|
|||||||
d = fixrot(d);
|
d = fixrot(d);
|
||||||
if(!h->move[0] && h->s != hsOrigin) {
|
if(!h->move[0] && h->s != hsOrigin) {
|
||||||
// cheating:
|
// cheating:
|
||||||
int pard;
|
int pard=0;
|
||||||
if(S3 == 3)
|
if(S3 == 3)
|
||||||
pard = 3 + hrand(2);
|
pard = 3 + hrand(2);
|
||||||
else if(S3 == 4 && S7 == 5)
|
else if(S3 == 4 && S7 == 5)
|
||||||
pard = 3; // to do: randomize
|
pard = 3; // to do: randomize
|
||||||
else if(S3 == 4)
|
else if(S3 == 4)
|
||||||
pard = 3;
|
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->move[d]) return h->move[d];
|
||||||
if(h->s == hsOrigin) {
|
if(h->s == hsOrigin) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user