Anders Jenbo
0413ca8ee9
Clena up M_ClearSquares
8 years ago
Anders Jenbo
c8e2794715
Clean up M_Start*
8 years ago
Anders Jenbo
f1d4e707f7
Auto format
8 years ago
Anders Jenbo
456d651f55
Clean up more bools related to sound.cpp
8 years ago
Anders Jenbo
f1c8439c64
Change setlvlnum to BYTE
8 years ago
Anders Jenbo
2db187faf5
Correct AnimStruct names ( #417 )
...
Fixes #384
8 years ago
Anders Jenbo
96ab38730f
Control.cpp ( #396 )
...
* Clean up ToggleSpell
* Clean up DrawLifeFlask and UpdateLifeFlask
* Clean up DrawManaFlaskm, control_update_life_mana and UpdateManaFlask
* Clean up CheckSBook
* Clean up DoSpeedBook
* Decompose magic numbers
* Clean up GetSBookTrans
* Apply spell_type
* Slight clean up of DrawSpellList
This improves the bin diff a little bit but more importantly gets rid of
_p*Spells[] usage in control.cpp
8 years ago
Anders Jenbo
c878a630f5
Monster.cpp ( #402 )
...
* 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
8 years ago
Anders Jenbo
8f3d59e513
Monster.cpp ( #400 )
...
* Clean up hp and mana checks
* Clean up PrepDoEnding
8 years ago
Anders Jenbo
4d8ceea32d
Types ( #395 )
...
* Apply plr_class
* Apply attribute_id
* NetSendCmd*(BOOL)
8 years ago
Anders Jenbo
744e225618
Clean up player.cpp ( #387 )
8 years ago
Anders Jenbo
fff0a9161c
movie.cpp ( #378 )
8 years ago
nomdenom
d14bf20467
Source: NO_GLOBALS support (for Miniwin)
8 years ago
aperturesecurity
42ce77ce05
Rebirth and Nuke
8 years ago
squidcc
51bfa2353b
Use quest enum values ( #362 )
...
* add/assign enums related to Black Mushroom quests
* plug in more quest enum values
8 years ago
Anders Jenbo
1e40fdf51e
Clean PM_DoAttack & CanTalkToMonst ( #311 )
...
* Clean PM_DoAttack & CanTalkToMonst
* Fix friendly mode default
8 years ago
Anders Jenbo
7da6f4d08a
Clean up PM_DoDeath ( #317 )
...
* Clean up PM_DoDeath
* Add enum for dFlags
8 years ago
Anders Jenbo
f055f7ba18
Adjust InitMonsterGFX
...
Fixes #20
8 years ago
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
Anders Jenbo
44b1349529
Clean up CheckMonsterHit
8 years ago
galaxyhaxz
503e5c1440
Names from DX SDK ( #197 )
8 years ago
Anders Jenbo
5b1aa609fc
Clean up InitMultiView
8 years ago
Anders Jenbo
31637532c9
Redefine nSolidTable as BYTE
...
Cleans PosOkMissile, CheckNoSolid, SolidLoc and LineClear
8 years ago
Anders Jenbo
fe3b0a9d09
Clean up DoEnding
8 years ago
Robin Eklind
5d46965fa2
Fix loading of TRN for unique monsters.
...
Fixes #31 .
8 years ago
Dennis Duda
0b5aef5edb
`PlaceGroup` is now near binary-exact
8 years ago
Dennis Duda
8bd518031b
Added `LIGHTSIZE` constant
8 years ago
Dennis Duda
5de0a5083b
`PlaceUniqueMonst` is now near binary-exact.
...
It's just the both struct pointers that seem to load a bit differently.
8 years ago
Dennis Duda
0f0bb1c713
`PlaceMonster` is now binary exact
8 years ago
Dennis Duda
7c75240c1e
`MonstPlace` now binary exact.
8 years ago
galaxyhaxz
f49117c95a
Update monster.cpp
8 years ago
Dennis Duda
ad59011c64
Shuffled things around in `InitMonster` to make the ordering closer to the beta, and making it binary exact
8 years ago
Dennis Duda
16a576cd5b
Brought `GetLevelMTypes` very close to binary exact
8 years ago
Dennis Duda
cf81adbd47
Minor adjustments to `InitLevelMonsters` and `AddMonsterType`
8 years ago
Dennis Duda
4461f657c3
Made `InitMonsterTRN` binary exact.
8 years ago
galaxyhaxz
5ed2336e90
Fix types of animation data ( #176 )
8 years ago
Dennis Duda
9d31a6e29c
Flip check in `AddMonsterType` to make it near binary perfect
8 years ago
Dennis Duda
50cbbded0c
Flipped setlevel check for better matching with the original binary
8 years ago
Dennis Duda
4391b247a8
Moved `monst->MData` to temporary variable to get the code very close to the original
8 years ago
Dennis Duda
302d1c6507
Flipped branches of PlaceQuestMonster to make it near byte-perfect.
8 years ago
Dennis Duda
22fcf9a074
Fixed stuff after rebase
8 years ago
Dennis Duda
834db70385
Cleaned up `PlaceGroup`
8 years ago
Dennis Duda
2e3a2f7544
Cleaned up `PlaceUniqueMonst`
8 years ago
Dennis Duda
375d0d469b
Fixed InitMonsterGFX, it now actually works!
8 years ago
Dennis Duda
0603e3e042
Cleaned up InitMonsterGFX, InitMonster, MonstPlace
8 years ago
Dennis Duda
66f522f34e
Small corrections/cleanups (thanks @galaxyhaxz :))
...
- Removed the `mt` variable since it didn't exist in the earlier PSX version
- Replaced raw constants with the proper defines
- Reworked the likely use of `numskeltypes`.
- Added `NUM_MTYPES` to `_monster_id` to represent the number of monster types
8 years ago
Dennis Duda
4c4fe6834c
Fixed missing quest enum value.
8 years ago
Dennis Duda
5d03a27248
Cleaned up `GetLevelMTypes`.
...
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).
8 years ago
Dennis Duda
d78ffef5fa
Cleaned up `InitLevelMonsters` and `AddMonsterType`
8 years ago
Dennis Duda
f5675d7fec
Fixed formatting in `InitMonsterTRN`
8 years ago