* Clean up PreSpawnSkeleton
* Clean up decode_enemy
* Clean up encode_enemy
* Clean up SpawnGolum
* Clean up TalktoMonster
* Clean up SpawnSkeleton
* Clean up IsGoat
* Clean up ActivateSpawn
* Clean up M_SpawnSkel
* Clean up M_DoDeath
* Clean up M_DoSpStand
* Clean up M_DoDelay
* Clean up M_DoStone
* Clean up M_WalkDir
* Clean up M_PathWalk
* Clean up M_CallWalk2
* Clean up M_DumbWalk
* Clean up MAI_Golum
* Clean up MAI_Garbud
* Clean up MAI_Lachdanan
* Clean up DeleteMonsterList
* Clean up FreeMonsters
* Define enums for resistance
* Correct AddPanelString input
* Correct pinfoflag type
* Define monster_goal
* apply enum to _pIFlags
* Correct DeleteMonsterList
* Add TODO for possible bug fix.
* Clean up DeleteMonster
* AddMonster
* Clean up NewMonsterAnim
* Clean up M_Ranged, M_Talker and M_GetDir
* Clean up M_StartDelay
* Clean up M_StartSpStand
* Clean M_StartSpStand
* Add enum to monster Anim
This had interesting compiler optimizations like
local array merging, which threw off IDA a bit.
By looking into older versions and the PSX symbols
I'm pretty sure I found the correct sizes for both arrays.
There are still minor differences, such as different parameter
loading for function calls. In other places, this solved itself with
time. (VC seems to generate different code base on a lot of
things, even down to alignment).
Finished refactoring spells.cpp, modifying other files only as needed.
Some functions are 99% binary exact now, like PlacePlayer, for example.
Added notes/TODOs for places with remaining discrepancies.