projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Break travel opcodes into a two-element structure.
[open-adventure.git]
/
init.c
diff --git
a/init.c
b/init.c
index 0ac3c4d6a8abb4ecc84408644d34cc929b6cc44a..fc8d5fdce8db6cfeb6c814d3b4c5552cb72f5eeb 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-23,9
+23,9
@@
void initialise(void)
for (int i = 1; i <= NLOCATIONS; i++) {
game.abbrev[i] = 0;
for (int i = 1; i <= NLOCATIONS; i++) {
game.abbrev[i] = 0;
- if (!(locations[i].description.big == 0 ||
TKEY
[i] == 0)) {
- int k =
TKEY
[i];
- if (MOD(labs(
TRAVEL[k]
), 1000) == 1)
+ if (!(locations[i].description.big == 0 ||
tkey
[i] == 0)) {
+ int k =
tkey
[i];
+ if (MOD(labs(
travel[k].opcode
), 1000) == 1)
conditions[i] |= (1 << COND_FORCED);
}
game.atloc[i] = 0;
conditions[i] |= (1 << COND_FORCED);
}
game.atloc[i] = 0;
@@
-72,15
+72,6
@@
void initialise(void)
game.hintlc[i] = 0;
}
game.hintlc[i] = 0;
}
- /* Define some handy mnemonics. */
-
- /* Some action verbs. */
- FIND = VOCWRD(WORD_FIND, 2);
- INVENT = VOCWRD(WORD_INVENT, 2);
- LOCK = VOCWRD(WORD_LOCK, 2);
- SAY = VOCWRD(WORD_SAY, 2);
- THROW = VOCWRD(WORD_THROW, 2);
-
/* Initialise the dwarves. game.dloc is loc of dwarves,
* hard-wired in. game.odloc is prior loc of each dwarf,
* initially garbage. DALTLC is alternate initial loc for dwarf,
/* Initialise the dwarves. game.dloc is loc of dwarves,
* hard-wired in. game.odloc is prior loc of each dwarf,
* initially garbage. DALTLC is alternate initial loc for dwarf,