galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
galaxyhaxz
7b687413b2
Rename InitPlayerLoc
7 years ago
Anders Jenbo
9b7da61dcf
Auto format src
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
9edeecb3bb
Consisten use of structs
7 years ago
Anders Jenbo
87ef2f91e7
Format mostly cleaned files
8 years ago
Andrew Dunstan
1430acc47f
msg.cpp cleanup part #0
8 years ago
Anders Jenbo
744e225618
Clean up player.cpp ( #387 )
8 years ago
aperturesecurity
42ce77ce05
Rebirth and Nuke
8 years ago
Anders Jenbo
465f2a56bd
Clean up InitPlrGFXMem ( #341 )
8 years ago
Anders Jenbo
ff2f0bf8ab
Clean up ProcessPlayers ( #347 )
8 years ago
Anders Jenbo
9bd3b4189e
Clean up CheckNewPath ( #332 )
8 years ago
Anders Jenbo
1e40fdf51e
Clean PM_DoAttack & CanTalkToMonst ( #311 )
...
* Clean PM_DoAttack & CanTalkToMonst
* Fix friendly mode default
8 years ago
Anders Jenbo
e05679b1c9
Clean up ProcessPlayers ( #319 )
...
* Clean up ProcessPlayers
* Change drawhpflag and drawmanaflag to BOOL
8 years ago
Anders Jenbo
91eecec686
WIP PlrHitPlr
8 years ago
Anders Jenbo
a3248a3801
Clean up StartPlrHit
8 years ago
Anders Jenbo
ebd39fc266
Clean up StartWalk,2&3
8 years ago
Anders Jenbo
3a0e40597b
Clean up InitPlayer
8 years ago
Anders Jenbo
6e50ec5337
Work on LoadPlrGFX
8 years ago
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
Anders Jenbo
9fe38c5805
Clean up 7 functions in player.cpp
...
SetPlayerOld PlrHitObj PlrDeathModeOK CheckCheatStats ClrPlrPath and
SyncInitPlr are now bin exact
Further clean up ShieldDur
8 years ago
Dennis Duda
dcc7c8bb2f
Moved the now const globals under the rdata comment.
8 years ago
Anders Jenbo
71a627ae8b
Clean up GetPlrGFXSize
8 years ago
Anders Jenbo
0900211d4a
Clean up PM_DoWalk2 && PM_DoWalk3
8 years ago
Anders Jenbo
e0fca69c63
Clean up PM_DoStand and PM_DoWalk
8 years ago
Anders Jenbo
4bd4a3f432
Clean up PM_DoRangeAttack
8 years ago
Anders Jenbo
5b3baf7508
Clean up PM_DoSpell
8 years ago
Anders Jenbo
f0dec0b96c
Clean up ShieldDur && ShieldDur
8 years ago
Dennis Duda
ad8f018e98
SetPlayerGPtrs is now binary exact!
8 years ago
galaxyhaxz
704380756d
Update player.h
8 years ago
Dennis Duda
9770783f41
Cleaned up `CreatePlayer` to be only one instruction off!
...
The devilution code generates one additional `cdq` instruction, the rest is perfect...
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
galaxyhaxz
5ed2336e90
Fix types of animation data ( #176 )
8 years ago
galaxyhaxz
5ff8756116
Fix junk ( #174 )
8 years ago
Dennis Duda
0603e3e042
Cleaned up InitMonsterGFX, InitMonster, MonstPlace
8 years ago
galaxyhaxz
fa64b2148d
Add defines [W.I.P] ( #160 )
8 years ago
Dennis Duda
0200a2abba
Refactored spells.cpp ( #147 )
...
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.
8 years ago
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
8 years ago
galaxyhaxz
bb01c6f084
Remove the "fear factor" ( #21 )
...
Snakes, spiders, Demons, what scares you?
8 years ago
galaxyhaxz
dde68ff89e
Add files via upload
8 years ago