]> granicus.if.org Git - nethack/commitdiff
Fix swapped DIR_UP and DIR_DOWN
authorPasi Kallinen <paxed@alt.org>
Mon, 28 Jun 2021 20:31:32 +0000 (23:31 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 28 Jun 2021 20:34:54 +0000 (23:34 +0300)
I don't think this had any effect on gameplay, but it was still wrong.

include/decl.h
src/decl.c

index a1192640bd117b7233d270116e2b50013821486d..446d4937b88847f4963907e99f87e89cc1355823 100644 (file)
@@ -183,8 +183,8 @@ enum movementdirs {
     DIR_SE,
     DIR_S,
     DIR_SW,
-    DIR_UP,
     DIR_DOWN,
+    DIR_UP,
 
     N_DIRS_Z
 };
index b28819ef2c1c1a9ca2b8529dfbd5c41392ce3956..796079961665aa4be26b3d88a0802c1dd0c4b126 100644 (file)
@@ -15,7 +15,7 @@ NEARDATA long yn_number = 0L;
 
 const char disclosure_options[] = "iavgco";
 
-/* x/y/z deltas for the 10 movement directions (8 compass pts, 2 up/down) */
+/* x/y/z deltas for the 10 movement directions (8 compass pts, 2 down/up) */
 const schar xdir[N_DIRS_Z] = { -1, -1,  0,  1,  1,  1,  0, -1, 0,  0 };
 const schar ydir[N_DIRS_Z] = {  0, -1, -1, -1,  0,  1,  1,  1, 0,  0 };
 const schar zdir[N_DIRS_Z] = {  0,  0,  0,  0,  0,  0,  0,  0, 1, -1 };