(dirindex): Narrow member type to signed char to save cache.
(pathcost): Catch bad direction characters (should not happen).
This commit is contained in:
parent
6bfdc38df1
commit
a88f12017e
3 changed files with 13 additions and 6 deletions
|
|
@ -51,7 +51,7 @@
|
|||
#define DIR_FIRST 1
|
||||
#define DIR_LAST 6
|
||||
|
||||
extern int dirindex[];
|
||||
extern signed char dirindex['z'-'a'+1];
|
||||
extern int diroff[][2];
|
||||
extern s_char dirch[];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue