Fix swapped DIR_UP and DIR_DOWN

I don't think this had any effect on gameplay, but it was still wrong.
This commit is contained in:
Pasi Kallinen
2021-06-28 23:31:32 +03:00
parent efae7c7c47
commit 183e31ef14
2 changed files with 2 additions and 2 deletions

View File

@@ -183,8 +183,8 @@ enum movementdirs {
DIR_SE,
DIR_S,
DIR_SW,
DIR_UP,
DIR_DOWN,
DIR_UP,
N_DIRS_Z
};

View 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 };