Anders Jenbo
82f0839658
Clean up path_parent_path
8 years ago
Anders Jenbo
bf81cd5462
Clean up some property handeling in monster.cpp
8 years ago
Anders Jenbo
5481c784f7
Add bug notice
8 years ago
Dennis Duda
bff845feb0
Updated _SNETUIDATA.selectnamecallback declaration
...
Updated _SNETUIDATA.selectnamecallback declaration for #329 .
8 years ago
Andrew Dunstan
0a17c0961d
clean and format portal.cpp
8 years ago
Andrew Dunstan
5dd1153979
rename riff_chunk -> CKINFO
8 years ago
Andrew Dunstan
4c085a734b
clean wave.cpp
8 years ago
Andrew Dunstan
1430acc47f
msg.cpp cleanup part #0
8 years ago
Anders Jenbo
2db187faf5
Correct AnimStruct names ( #417 )
...
Fixes #384
8 years ago
Anders Jenbo
48a1035d4a
Remove unused varialbes
8 years ago
Anders Jenbo
83e52d47e1
Clean up MaxSpellsCheat and SetSpellLevelCheat
8 years ago
Anders Jenbo
8f3d59e513
Monster.cpp ( #400 )
...
* Clean up hp and mana checks
* Clean up PrepDoEnding
8 years ago
Robin Eklind
7515655efb
Run format.sh
8 years ago
squidcc
8fd0561588
clean all tmsg functions ( #357 )
...
* clean all tmsg functions
* type fix-ups
8 years ago
squidcc
e8e725c35a
clean dead.cpp ( #369 )
8 years ago
Anders Jenbo
226fbc68b0
effects_cleanup_sfx & stream_update ( #375 )
...
* effects_cleanup_sfx & stream_update
* effects_play_sound
* effect_is_playing, PlaySFX, PlaySfxLoc & effects_play_sound
8 years ago
squidcc
3561450624
clean plrmsg.cpp ( #386 )
8 years ago
Anders Jenbo
744e225618
Clean up player.cpp ( #387 )
8 years ago
galaxyhaxz
395adc3c6b
Minor fixes ( #379 )
8 years ago
Anders Jenbo
5df6a0d771
Sound.cpp ( #353 )
...
* Clean up of sound.cpp
* Fix builds that don't support max()
8 years ago
Anders Jenbo
afbe7a5ffa
sfx_stop, InitMonsterSND, FreeEffects, PlayEffect and calc_snd_position
8 years ago
squidcc
4ed6d83265
fix regression in DrawSpellList() that caused only the first 1/4 spells to be drawn ( #355 )
...
fix places where sTownSpell was still being cast to DWORD
change SpellData::sTargeted to BOOL, fix spelldata[] definition to use TRUE/FALSE
8 years ago
Anders Jenbo
b7dfcf5ed5
Clean up CheckPlrSpell ( #339 )
8 years ago
Anders Jenbo
d0f620f0b2
Clean up CreatePlayer ( #343 )
8 years ago
Anders Jenbo
ff2f0bf8ab
Clean up ProcessPlayers ( #347 )
8 years ago
Anders Jenbo
5cea7f9f95
Clean up PlrHitMonst ( #305 )
8 years ago
Anders Jenbo
d8c4bcab5c
Clean up DropHalfPlayersGold ( #330 )
8 years ago
Anders Jenbo
db77557dce
ValidatePlayer ( #318 )
...
* ValidatePlayer
* Add MAX_SPELLS define
8 years ago
galaxyhaxz
42c9076ce5
Sync with nightly ( #302 )
8 years ago
Dennis Duda
2f7f7d055e
Switched all remaining uses of `UINT64` to `unsigned __int64` to make it compilable on <=VC5
8 years ago
Anders Jenbo
146cd9fe8c
Change UINT64 to __int64
8 years ago
galaxyhaxz
34938876e0
A few name corrections ( #203 )
8 years ago
Dennis Duda
9c69ae0ee5
Fixed `NUM_INVLOC` in struct definition
8 years ago
Anders Jenbo
44b1349529
Clean up CheckMonsterHit
8 years ago
galaxyhaxz
7e50e6f1d5
Fix invalid "unusable" spells ( #198 )
8 years ago
galaxyhaxz
170d7ba53a
Fix timed messages in multiplayer ( #196 )
8 years ago
Dennis Duda
e8b53791d3
`DrawInv` is now binary exact.
8 years ago
galaxyhaxz
0efe4c27b6
Fix TSyncHeader and sync.cpp ( #192 )
8 years ago
galaxyhaxz
2a377ea876
Fix some struct names and lighting ( #190 )
8 years ago
galaxyhaxz
13126a90d6
Fix garbage structs, data in setmaps ( #189 )
8 years ago
galaxyhaxz
d6b26636d5
Fix PlayerStruct level size
...
Note that both these fields are 25 bytes in Hellfire, so NUMLEVELS was used on both
8 years ago
galaxyhaxz
f4d1dea559
Organized struct file
...
Note that code will not change, should make it easier to read now
8 years ago
Dennis Duda
cf81adbd47
Minor adjustments to `InitLevelMonsters` and `AddMonsterType`
8 years ago
Dennis Duda
07b5dc3939
Cleaned up `inv_update_rem_item`, `RemoveInvItem`, `RemoveSpdBarItem`, `CheckInvItem`, `CheckInvScrn`, `CheckItemStats`
...
All relatively simple and/or use code from other functions already cleaned up. Now binary exact except for the small codegen differences outlined in https://github.com/diasurgical/devil-nightly/issues/15
8 years ago
Dennis Duda
a061f6d6f0
Cleaned up `CheckInvSwap` (0x3B6 → 0x390, orig: 0x373)
...
Pretty close to the original binary except for the first loop, which generates differently. (TODO comment added) There are also some questionable double address calculations, which hopfully clear up when the loop is fixed as well.
Also added enums `inv_body_loc` and `inv_xy_slot` to clean up a lot of magic numbers.
8 years ago
Dennis Duda
2f25466ed6
Cleaned up `CheckInvSwap`
...
Now binary exact except for the usual `xor; inc` vs `push 1; pop` switch.
Updated the type of `_iIdentified` to `BOOL` as well (since every write to it actually is 0 or 1).
8 years ago
galaxyhaxz
8381807e90
Fix data type in gendung ( #183 )
8 years ago
Dennis Duda
05d2cbadb2
Added missing PlayerStruct change
8 years ago
Dennis Duda
4ae7211fa0
Cleaned up `CreatePlayer`.
...
This is now as close as it gets without switching to enum types/parameters everywhere, so the compiler can optimize all accesses/checks accordingly. This is especially noticeable in the way the code for the switch is generated (line 775). In the original binary you can see it does weird stuff if c is not one of the classes' enum value (probably due to optimization since the switch should be exhaustive).
I've tried switching the type of c to _ui_classes, also removing the UI_NUM_CLASSES value to see if that'd be enough to let it generate the optimized code, but nope, seems like we need to change it all at once. Currently, _pClass is a char, but an enum value would fit there as well, size-wise (alignment).
That's also why I'm guessing there had to be another enum for player classes, without the UI_NUM_CLASSES value...
8 years ago
Dennis Duda
e7065a0b02
Added `plr_class` enum, moving the define `NUM_CLASSES` into it.
8 years ago