From f8fb7d5950f766afaf41a0d3f5034ef3a77caeeb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 26 Oct 2023 12:33:39 +0200 Subject: [PATCH] locations:: null movei --- locations.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locations.cpp b/locations.cpp index 4c6c87f8..8be0475e 100644 --- a/locations.cpp +++ b/locations.cpp @@ -469,6 +469,7 @@ constexpr int NO_SPACE = 197; constexpr int TELEPORT = 196; constexpr int JUMP = 195; constexpr int STAY = 194; +constexpr int NOMOVEI = 193; namespace whirlwind { cell *jumpDestination(cell*); } @@ -491,6 +492,7 @@ struct movei { } movei(cell *_s, cell *_t, int _d) : s(_s), t(_t), d(_d) {} movei(cellwalker cw) : s(cw.at), t(cw.cpeek()), d(cw.spin) {} + movei(nullptr_t) : s(nullptr), t(nullptr), d(NOMOVEI) {} movei rev() const { return movei(t, s, rev_dir_or(d)); } int dir_or(int x) const { return proper() ? d : x; } int rev_dir_or(int x) const { return proper() ? s->c.spin(d) : x; }