Initialize dwarf locations in YAML, not C.
Minimizes magic numbers.
This commit is contained in:
parent
1f9f39d789
commit
b247359d7f
5 changed files with 28 additions and 8 deletions
|
@ -35,6 +35,10 @@ SPDX-License-Identifier: BSD-2-Clause
|
|||
#define COND_HOGRE 20 /* Trying to deal with ogre */
|
||||
#define COND_HJADE 21 /* Found all treasures except jade */
|
||||
|
||||
/* Count of dwarf starting locations */
|
||||
#define NDWARFLOCS {ndwarflocs}
|
||||
extern const int dwarflocs[NDWARFLOCS];
|
||||
|
||||
typedef struct {{
|
||||
const char** strs;
|
||||
const int n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue