Anders Jenbo
683a50527d
Correct missmatched bool types
7 years ago
Anders Jenbo
bf973d0872
Use sizeof directly instead of definging TMEGAPKT_SIZE
7 years ago
Anders Jenbo
b7a4d32e91
Use sizeof(TMegaPkt)
7 years ago
Nam Nguyen
f7ceadf6dc
pack the TMegaPkt struct. define TMEGAPKT_SIZE.
...
memcpy((char *)&packeta[1] - packeta->dwSpaceLeft, packet, dwSize);
Source/msg.cpp does this calculation, which will be wrong if any padding is
added. To get this to work correctly, pack the structures, as suggested by
@AJenbo .
Also, define TMEGAPKT_SIZE because pNext can be 4 or 8 bytes.
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
Martin Hauke
6fc09ea8a6
Fix some typos
7 years ago
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