Robin Eklind
29eb52b6d0
Make _pLvlVisited into a boolean.
...
_pLvlVisited is only ever used in boolean contexts.
7 years ago
Robin Eklind
59167447ba
msg: use enum for RSPLTYPE_INVALID in msg.cpp
7 years ago
Robin Eklind
983d2d6769
Make _pLvlChanging into a boolean.
...
_pLvlChanging is only ever used in boolean contexts.
7 years ago
Anders Jenbo
32a51d17ca
Align function signatures with PSX symbols
...
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
7 years ago
Anders Jenbo
7c071924ad
Format recently cleaned code
7 years ago
Sergey Semushin
813d6693fb
Add macro for aligning by 1 and apply it to 3 functions to make them bin exact.
7 years ago
Sergey Semushin
19d9fec7f8
Clean up delta_get_item.
7 years ago
Sergey Semushin
a9a431fc12
Fix small diff in NetSendCmdString.
7 years ago
Manuel K
ce1f397658
Use MAX_PLRS
7 years ago
Anders Jenbo
565bb5aa7d
Adust dFlag enums
7 years ago
Anders Jenbo
1d7a548cd7
Clean up nthread.cpp
7 years ago
galaxyhaxz
150cb875ff
On_DLEVEL
7 years ago
Sergey Semushin
6ec6e3c530
Make MonstrStruct::_msquelch and DMonstrStr::_mactive unsigned.
...
Also utilize UCHAR_MAX for value of 255 used extensively for those flags.
7 years ago
qndel
f896cd4c2c
delta_put_item bin exact
7 years ago
qndel
66c1e8a0e0
DeltaAddItem bin exact
7 years ago
galaxyhaxz
e2146d5b6e
Fix DeltaJunk multiplayer
7 years ago
Anders Jenbo
7dc47ed8ce
Clean up multi_player_left_msg
7 years ago
Anders Jenbo
9f2a6f5ba4
Clean up after merge
7 years ago
Anders Jenbo
631305035a
Brute fix compile errors
7 years ago
galaxyhaxz
d13f453410
multi_player_joins + dumphist
7 years ago
Anders Jenbo
55a0396f8f
Clean up mem_free_dbg style
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Anders Jenbo
d2174e3454
Apply code style
7 years ago
galaxyhaxz
40ffc0d00c
Clean the dirty sink
7 years ago
galaxyhaxz
ec2029e0ba
Fix sync.cpp names p1 ( #828 )
7 years ago
galaxyhaxz
5238265702
Implement assert support ( #791 )
7 years ago
Anders Jenbo
9358465bb5
AddMissile bin exact ( #621 )
...
* AddMissile bin exact
* Clean up bools
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Anders Jenbo
192da1853b
Clean up DeltaExportData
7 years ago
Xadhoom
7aeb6e3de4
Fix leaving and joining again
7 years ago
Anders Jenbo
b582709d38
dthread_send_delta bin exact ( #563 )
7 years ago
Anders Jenbo
c6d8b533e6
Fix delta_get_item
7 years ago
Anders Jenbo
275e28581a
BOOLEAN sgbDeltaChanged
7 years ago
Anders Jenbo
841f5af199
Compile effects.cpp and wave.cpp as C ( #530 )
...
* Correct SFileReadFile signature
* Compile as C
Source/effects.cpp
Source/wave.cpp
* Make diabloui.h C frindly
7 years ago
Anders Jenbo
4a62a7c678
Code style
7 years ago
Anders Jenbo
5bc5da3597
Clean up DeltaLoadLevel
7 years ago
Anders Jenbo
cd408cf3ee
Fix multiplayer crashing
...
Fixes #487 again
7 years ago
Anders Jenbo
f917bdbd9b
Clean up delta_put_item
7 years ago
Anders Jenbo
a40db4682b
Clean up DeltaImportJunk
7 years ago
Anders Jenbo
b262d34a5a
Clean up DeltaAddItem
7 years ago
Anders Jenbo
7973fde92f
Clean up DeltaExportJunk
7 years ago
Anders Jenbo
9a56a19c2b
Clean up DeltaExportData
7 years ago
Anders Jenbo
ec60523956
Clean up msg_wait_resync
7 years ago
Anders Jenbo
de1fb3c002
Clean up ParseCmd
7 years ago
Anders Jenbo
bd310ff8d5
Delta data ( #504 )
...
* Clean up DeltaImport*
* Clean up DeltaExportData related functions
7 years ago
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
7 years ago
Anders Jenbo
dbd69332fa
msg.cpp use sizeof() instead of hardcoded sizes
7 years ago
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
7 years ago
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.
7 years ago