🎨 Apply direction enum to monsters and relations
Missiles _mimfnum is being used for a lot more then just directions and can also be a 16 degree direction so can't apply enum verbs and restricitons to it in most cases. This in turns also affects SetMissDir and some other functions that have to stay int.
This commit is contained in:
parent
b238d320c2
commit
61d15e23db
14 changed files with 202 additions and 238 deletions
|
|
@ -76,7 +76,7 @@ void InitDead()
|
|||
assert(nd <= MAXDEAD);
|
||||
}
|
||||
|
||||
void AddDead(int dx, int dy, int8_t dv, int ddir)
|
||||
void AddDead(int dx, int dy, int8_t dv, direction ddir)
|
||||
{
|
||||
dDead[dx][dy] = (dv & 0x1F) + (ddir << 5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue