From: Pasi Kallinen Date: Mon, 28 Jun 2021 20:31:32 +0000 (+0300) Subject: Fix swapped DIR_UP and DIR_DOWN X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=183e31ef142acb992975fb00fef11acfa80281fa;p=nethack Fix swapped DIR_UP and DIR_DOWN I don't think this had any effect on gameplay, but it was still wrong. --- diff --git a/include/decl.h b/include/decl.h index a1192640b..446d4937b 100644 --- a/include/decl.h +++ b/include/decl.h @@ -183,8 +183,8 @@ enum movementdirs { DIR_SE, DIR_S, DIR_SW, - DIR_UP, DIR_DOWN, + DIR_UP, N_DIRS_Z }; diff --git a/src/decl.c b/src/decl.c index b28819ef2..796079961 100644 --- a/src/decl.c +++ b/src/decl.c @@ -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 };