Commit Graph

25 Commits

Author SHA1 Message Date
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
2018-09-28 10:46:36 +02:00
Anders Jenbo b7dfcf5ed5 Clean up CheckPlrSpell (#339) 2018-09-28 01:49:17 +02:00
Anders Jenbo d8c4bcab5c Clean up DropHalfPlayersGold (#330) 2018-09-24 16:50:45 +02:00
Anders Jenbo 5d2130e52e Confirm itemavail size via beta 2018-09-23 16:58:23 +02:00
Dennis Duda 2f7f7d055e Switched all remaining uses of UINT64 to unsigned __int64 to make it compilable on <=VC5 2018-09-18 23:30:25 +02:00
Dennis Duda 6792078180 Merge remote-tracking branch 'devilution/master' 2018-09-10 20:44:41 +02:00
galaxyhaxz 38b498ac4b Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
Dennis Duda 4183da03ee Merge commit '7e50e6f1d55468ff26382e132bbde42546f67124'
Fix invalid "unusable" spells
(https://github.com/diasurgical/devilution/pull/198)

Switched types to UINT64 and removed the remaining cleaned
up casts.
2018-09-09 14:51:14 +02:00
Dennis Duda 0f05d32bae Added bugfix notices to RemoveInvItem and RemoveSpdBarItem 2018-09-07 18:34:50 +02:00
Dennis Duda 01fdf361da Fixed drawpanflag not being set in RemoveSpdBarItem and removed wrong cast of literal 1 to UINT64.
Fixes #38.
2018-09-07 13:38:17 +02:00
Dennis Duda e8b53791d3 DrawInv is now binary exact. 2018-09-05 18:29:40 +02:00
Dennis Duda 4c79827d3c FreeInvGFX and InitInv are now binary exact. 2018-09-04 20:47:58 +02:00
Dennis Duda 91b6568ef9 Fixed CheckInvCut to be binary exact now with the new compiler version 2018-08-29 00:02:59 +02:00
Dennis Duda 0508308eba Fixed missing cast for literal 1 to UINT64 2018-08-28 22:56:36 +02:00
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
2018-08-28 20:11:23 +02:00
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.
2018-08-28 16:40:49 +02:00
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).
2018-08-28 16:40:49 +02:00
galaxyhaxz a336c38226 Fix random(idx,v) calls (#157) 2018-08-10 22:45:32 -05:00
Stephan Unverwerth c8af0523ac refactor leveltype to use macros (#103) 2018-06-29 10:40:22 -05:00
Adam Heinermann 87ca6557c3 Changed _oBreak and _oSelFlag to char (#95)
* Changed _oBreak and _oSelFlag to char
2018-06-28 08:53:06 -05:00
galaxyhaxz 49a6f4f9fc Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxz bb01c6f084 Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxz 083833d589 Fix item swapping deleting the item 2018-06-15 00:47:43 -05:00
galaxyhaxz ade35fb4a4 Fixed decompilation, game can now be played start to finish (#15)
Fix Lazurus seals, dropping items, and Shrine spawning.
2018-06-14 05:53:03 -05:00
galaxyhaxz dde68ff89e Add files via upload 2018-06-06 21:25:54 -05:00