1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

inforder basics

This commit is contained in:
Zeno Rogue
2019-10-10 13:08:06 +02:00
parent e799f76e5d
commit b5f6e6f3f5
10 changed files with 66 additions and 5 deletions

View File

@@ -52,6 +52,10 @@ EX hstate transition(hstate s, int dir) {
if(s == hsB && (dir >= 2 && dir < S7-2)) return hsA;
if(s == hsB && (dir == S7-2)) return hsB;
}
else if(S3 >= OINF) {
if(s == hsOrigin) return hsA;
if(s == hsA && dir) return hsA;
}
else {
if(s == hsOrigin) return hsA;
if(s == hsA && dir >= 3 && dir <= S7-3) return hsA;