Anders Jenbo
40cea40aa4
Remove windows call types collisions
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
Robin Eklind
c29030d6f6
use uint64_t instead of unsigned __int64 in structs.h
...
Updates #449 .
6 years ago
Robin Eklind
1ccbdc63fb
declare _SNETVERSIONDATA before use in structs.h
...
Fixes #455 .
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Gleb Mazovetskiy
c2056c6cbf
SHA: Fix some implementation-defined behaviour ( #343 )
...
* SHA: Fix negative base shift UB
* SHA: Avoid signed integer overflow
We do cast from uint32_t to int32_t but that should be OK everywhere.
* SHA: Always use portable arithmetic right shift
7 years ago
qndel
7129558d0b
apply enums
7 years ago
Anders Jenbo
1d03064fee
Clean up sound code
7 years ago
Anders Jenbo
049178cb2e
Clean up load/save code
...
Remove most call to memcpy in preperation for Big Endian support
Document what pointers are being skipped
Align save and load code (easier to verify that both are correct)
7 years ago
Anders Jenbo
bf973d0872
Use sizeof directly instead of definging TMEGAPKT_SIZE
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
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