Anders Jenbo
797cf17c19
Clean up UseScroll
7 years ago
Anders Jenbo
129df0d8a9
Clean up RemoveScroll
7 years ago
Anders Jenbo
389008bf56
Clean up DrawInvMsg
7 years ago
Anders Jenbo
f86c5c172b
Clean up TryInvPut
7 years ago
Anders Jenbo
59515a9d8c
Clean up CanPut
7 years ago
Anders Jenbo
fd1cb84509
Clean up SyncGetItem
7 years ago
Anders Jenbo
97df986fa3
Clean up FindGetItem
7 years ago
Anders Jenbo
334cea534a
Clean up CheckQuestItem
7 years ago
Anders Jenbo
83532a7263
Clean up CheckBookLevel
7 years ago
Anders Jenbo
69ad8b63e0
Clean up StartGoldDrop
7 years ago
galaxyhaxz
2f7a849eba
Cleanup InvDrawSlotBack ( #712 )
7 years ago
galaxyhaxz
87a0846a38
Clean CPrintString + Font index ( #687 )
7 years ago
galaxyhaxz
befd52c003
Fix type for 'gpBuffer' ( #672 )
7 years ago
galaxyhaxz
0bb9f666b3
Clean remaining .CEL functions ( #657 )
7 years ago
galaxyhaxz
81f3f5daa2
Cleaning Engine CEL functions ( #652 )
...
* Cleaning Engine CEL functions
* Fix C functions
7 years ago
Anders Jenbo
b5365f53f1
Clean up DrawInvBelt ( #570 )
7 years ago
Anders Jenbo
57d7c99a8f
Stores.cpp ( #551 )
...
* Clean up FreeStoreMem
* Clean up AddSLine
* Clean up AddSText
* Clean up SmithSellOk
7 years ago
Anders Jenbo
429185ef7a
Apply CURSOR_FIRSTITEM ( #541 )
7 years ago
Robin Eklind
e915623726
rename SetCursor to SetCursor_ to avoid collision with windows.h
...
Translation done automatically using:
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
4a62a7c678
Code style
7 years ago
Anders Jenbo
ab3a6208d2
Use "BOOLEAN" instead of "bool"
...
bool is not defined in C
7 years ago
Anders Jenbo
0fb5c0bf9c
Additional tab indentation
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
7 years ago
Anders Jenbo
596f244f50
Align structured data tables
8 years ago
Anders Jenbo
6aa076461e
Format inv.cpp
8 years ago
Anders Jenbo
6576954831
Clean up types used in gamemenu.cpp
8 years ago
Andrew Dunstan
47244b9f3c
clean all On_* functions
8 years ago
Anders Jenbo
48a1035d4a
Remove unused varialbes
8 years ago
Anders Jenbo
f80de53b14
_iMagical enum ( #393 )
...
* _iMagical enum
* Color enum
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
4d8ceea32d
Types ( #395 )
...
* Apply plr_class
* Apply attribute_id
* NetSendCmd*(BOOL)
8 years ago
Anders Jenbo
411fa9f24a
Add enumds for _pgfxnum and fully use inv_body_loc ( #392 )
...
* Add enumds for _pgfxnum and fully use inv_body_loc
* _iIdentified is BOOL
* _pgfxnum
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
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
d8c4bcab5c
Clean up DropHalfPlayersGold ( #330 )
8 years ago
Anders Jenbo
5d2130e52e
Confirm itemavail size via beta
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
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
Dennis Duda
0f05d32bae
Added bugfix notices to RemoveInvItem and RemoveSpdBarItem
8 years ago
Dennis Duda
01fdf361da
Fixed drawpanflag not being set in `RemoveSpdBarItem` and removed wrong cast of literal `1` to `UINT64`.
...
Fixes #38 .
8 years ago
Dennis Duda
e8b53791d3
`DrawInv` is now binary exact.
8 years ago
Dennis Duda
4c79827d3c
`FreeInvGFX` and `InitInv` are now binary exact.
8 years ago
Dennis Duda
91b6568ef9
Fixed CheckInvCut to be binary exact now with the new compiler version
8 years ago
Dennis Duda
0508308eba
Fixed missing cast for literal `1` to UINT64
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