Commit Graph
50 Commits
Author SHA1 Message Date
Anders Jenbo 4a62a7c678 Code style 2018-12-29 02:15:20 +01:00
Anders Jenbo 5bc5da3597 Clean up DeltaLoadLevel 2018-12-22 13:23:59 +01:00
Anders Jenbo cd408cf3ee Fix multiplayer crashing
Fixes #487 again
2018-12-16 18:46:35 +01:00
Anders Jenbo de1fb3c002 Clean up ParseCmd 2018-12-16 16:16:22 +01:00
Anders Jenbo bd310ff8d5 Delta data (#504)
* Clean up DeltaImport*
* Clean up DeltaExportData related functions
2018-12-16 16:15:59 +01:00
Anders Jenbo 69d68254d5 Clean up msg.cpp (#502)
* Clean up msg_wait_for_turns
* Clean up msg_get_next_packet
* Clean up msg_pre_packet
* Clean up DeltaSaveLevel
* Simple clean ups for msg.cpp
* Clean up NetSendCmdQuest
* Clean up NetSendCmdGItem
* Clean up NetSendCmdGItem2
* Clean up NetSendCmdPItem
* Clean up NetSendCmdChItem
* Clean up NetSendCmdDItem
* Clean up multi_send_packet
* Clean up msg_errorf
* Clean up i_own_level
* Clean up msg_free_packets
2018-12-16 16:15:13 +01:00
Anders Jenbo dbd69332fa msg.cpp use sizeof() instead of hardcoded sizes 2018-12-15 18:13:31 +01:00
Anders Jenbo 2a33606bbb Clean up msg.cpp
msg_send_drop_pkt
msg_send_packet
delta_kill_monster
delta_monster_hp
delta_sync_monster
delta_sync_golem
delta_leave_sync
delta_portal_inited
delta_quest_inited
delta_open_portal
Fix On_* bin exact
2018-12-15 18:13:31 +01:00
Anders Jenbo 4aac75e836 Change msg attributes to signed where relevant
The variables are either being compared to -1, transfered between values
that are signed or closely related to such. Having them as unsigned has
the potential to break the game, having them signed shoudn't have any
negative effects.
2018-12-15 18:13:31 +01:00
Anders Jenbo 9edeecb3bb Consisten use of structs 2018-11-26 14:19:27 +01:00
Anders Jenbo ab3a6208d2 Use "BOOLEAN" instead of "bool"
bool is not defined in C
2018-11-26 12:35:03 +01:00
Anders Jenbo 9123d92ab6 M teleport (#470)
* Correct NetSendCmdGolem()-cl type.
* Correct gbActivePlayers type
* Clean up M_Teleport
* Clean up PutMissile
2018-11-22 01:52:20 +01:00
galaxyhaxz bace152240 Fix tail functions (#463) 2018-11-13 15:40:01 -06:00
galaxyhaxz 83e817a9bb Fix CreateMagicItem and cheat cmd (#460) 2018-11-12 15:26:36 -06:00
Anders Jenbo 507d12082f Use MAXDUR* in most instances 2018-11-04 22:27:26 +01:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo 8276252e6e Foarmat multiplayer related files 2018-10-22 02:07:06 +02:00
Anders Jenbo 9b590ea36a Zero check for currlevel 2018-10-21 05:27:59 +02:00
Andrew Dunstan 47244b9f3c clean all On_* functions 2018-10-20 14:42:59 +02:00
Andrew Dunstan c2fbc0e661 player_mask -> pmask 2018-10-18 02:37:33 +02:00
Andrew Dunstan 1430acc47f msg.cpp cleanup part #0 2018-10-18 02:37:33 +02:00
Andrew Dunstan c2d49ff75f add missing va_end "calls" 2018-10-15 20:39:06 +02:00
Anders Jenbo 8f3d59e513 Monster.cpp (#400)
* Clean up hp and mana checks

* Clean up PrepDoEnding
2018-10-10 09:55:57 +02:00
Anders Jenbo 4d8ceea32d Types (#395)
* Apply plr_class

* Apply attribute_id

* NetSendCmd*(BOOL)
2018-10-08 14:17:05 +02:00
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
2018-10-07 11:04:22 +02:00
Anders Jenbo 744e225618 Clean up player.cpp (#387) 2018-10-06 00:33:58 +02:00
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
galaxyhaxz cf10dadb91 Correct function names in "encrypt.cpp" (#344) 2018-09-27 00:49:30 +02:00
Anders Jenbo 9bd3b4189e Clean up CheckNewPath (#332) 2018-09-25 20:46:09 +02:00
Andrew Dunstan 71cae5f8c2 add enums for known actions (to be performed in response to commands) 2018-09-25 10:14:12 +10:00
Robin Eklind 23f31ec724 Merge branch 'AJenbo-StartPlayerKill' into nightly 2018-09-24 16:14:53 +02:00
Anders Jenbo 7da6f4d08a Clean up PM_DoDeath (#317)
* Clean up PM_DoDeath

* Add enum for dFlags
2018-09-24 08:13:48 +02:00
Anders Jenbo 5d2130e52e Confirm itemavail size via beta 2018-09-23 16:58:23 +02:00
Anders Jenbo e05679b1c9 Clean up ProcessPlayers (#319)
* Clean up ProcessPlayers

* Change drawhpflag and drawmanaflag to BOOL
2018-09-23 09:38:34 +02:00
Anders Jenbo 91eecec686 WIP PlrHitPlr 2018-09-17 21:37:55 +02:00
Anders Jenbo ca2271bf90 Clean up StartNewLvl 2018-09-15 15:17:41 +02:00
Anders Jenbo 6e50ec5337 Work on LoadPlrGFX 2018-09-12 20:28:09 +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
Anders Jenbo 8525142fa8 Clean up ModifyPlrDex 2018-09-09 15:23:58 +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
galaxyhaxz d49bdeaae6 Fix portals/quests in multiplayer 2018-08-23 02:32:36 -05:00
galaxyhaxz 6fbb559a30 Fix sgJunk array (#177) 2018-08-23 01:20:25 -05:00
galaxyhaxz 5ed2336e90 Fix types of animation data (#176) 2018-08-22 23:15:16 -05:00
galaxyhaxz fa64b2148d Add defines [W.I.P] (#160) 2018-08-15 22:13:15 -05:00
galaxyhaxz 775ae59e18 Fix function signatures and others (#158)
Fix InitObjects, themes.cpp, names
2018-08-12 18:32:48 -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 dde68ff89e Add files via upload 2018-06-06 21:25:54 -05:00