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
galaxyhaxz
8a22ab6f24
Fixes to item.cpp
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
Martin Hauke
6fc09ea8a6
Fix some typos
7 years ago
galaxyhaxz
86e552a9e7
Change PCX struct to match Z-Soft Manual
7 years ago
Anders Jenbo
5ab9f4609a
Clean up signedness
7 years ago
Robin Eklind
b727d158ab
Make _pSLvlVisited into a boolean.
...
_pSLvlVisited is only ever used in boolean contexts.
7 years ago
Robin Eklind
29eb52b6d0
Make _pLvlVisited into a boolean.
...
_pLvlVisited is only ever used in boolean contexts.
7 years ago
Robin Eklind
a443e5091e
Make _pInfraFlag a boolean.
...
_pInfraFlag is only ever used in boolean contexts.
7 years ago
Robin Eklind
983d2d6769
Make _pLvlChanging into a boolean.
...
_pLvlChanging is only ever used in boolean contexts.
7 years ago
Robin Eklind
f59439a8ff
Make _pInvincible into a boolean.
...
_pInvincible is only ever used in boolean contexts.
7 years ago
Robin Eklind
3f4a539bf7
Make _pBlockFlag into a boolean.
...
_pBlockFlag is only ever used in boolean contexts.
7 years ago
Alex Sweet
e1bc0c40eb
Undo style changes
7 years ago
Alex Sweet
74011382b4
Removed unused #pragma packs
7 years ago
Alex Sweet
aed31ce684
Style fixes
7 years ago
Alex Sweet
c124514391
Add missing pragma pack to some structs
7 years ago
Alex Sweet
a0c295811d
Load 32 bit save files
7 years ago
Anders Jenbo
3328682a43
Correct TSyncHeader and TSyncMonster types
7 years ago
Anders Jenbo
78a8c05925
Clean up ParseMPQHeader
7 years ago
Sergey Semushin
5a50f30f36
Make delta_quest_inited bin exact.
7 years ago
Sergey Semushin
cb05f8f3e4
Clean up InitQstSnds.
7 years ago
Anders Jenbo
26d7327b1f
Cleanup ( #1200 )
...
* Clean up effects.cpp
* Clean up monster.cpp
* Clean up codec.cpp
7 years ago
Anders Jenbo
1d7a548cd7
Clean up nthread.cpp
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
Anders Jenbo
faeb360c88
Revert multi.h to not include storm.h
7 years ago
Anders Jenbo
790197cae5
Define SEVTHANDLER
7 years ago
Sergey Semushin
e336f56a9d
Clean up M_CheckEFlag.
7 years ago
Anders Jenbo
16db544c46
Clean up GetItemPower ( #1075 )
7 years ago
galaxyhaxz
029b15f298
Fix type for Dungeon Micros
7 years ago
Anders Jenbo
7dc47ed8ce
Clean up multi_player_left_msg
7 years ago
Anders Jenbo
dade490e9f
Clean up InitThemes
7 years ago
Sergey Semushin
e59ba64cf0
Change ObjectStruct::_oDelFlag to BOOL.
7 years ago
galaxyhaxz
fe55ca18cc
Item Records & DrawDiabloMsg ( #971 )
7 years ago
Robin Eklind
65504a9de8
Remove size comment from RECT32 struct
7 years ago
Robin Eklind
0501ff10ef
Use RECT32 struct for attribute_inc_rects
7 years ago
galaxyhaxz
6edc52a2c2
RFC: cleanup msgcmd.cpp ( #933 )
7 years ago
Anders Jenbo
1b58c18223
Clean up gmenu_enable
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
galaxyhaxz
eb1758f86a
Fix broken game menu
7 years ago
Anders Jenbo
97df986fa3
Clean up FindGetItem
7 years ago
Anders Jenbo
df61fc06b0
CheckThemeObj3 bin exact
...
This also fixes ThemeStruct and there by most functions in themes.cpp
(again)
7 years ago
qndel
86ba2dc2ae
items.cpp - SetupItem bin exact + changed some flags from int to BOOL
7 years ago
qndel
46c07573eb
AddL1Door bin exact ( #774 )
7 years ago
Anders Jenbo
0fc30c1260
Make AddMissile bin exact
7 years ago
Anders Jenbo
4c497e1775
Use values from defs.h
7 years ago
Anders Jenbo
614ebe2e5c
Make pack.cpp bin exact
7 years ago
galaxyhaxz
befd52c003
Fix type for 'gpBuffer' ( #672 )
7 years ago
Anders Jenbo
ea9993e5b7
Update structs.h
7 years ago
Anders Jenbo
9358465bb5
AddMissile bin exact ( #621 )
...
* AddMissile bin exact
* Clean up bools
7 years ago
Max Desiatov
bb61e286a4
Fix initdata type in structs.h
7 years ago