Anders Jenbo
d008af43b0
Semantic code style cleanups
6 years ago
Anders Jenbo
f7de4c46a7
Strip eflag logic now that it is fixed in the render
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h ( #2005 )
...
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.
Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
6 years ago
qndel
cc6a2d4523
Apply MAX_PATH_LENGTH
6 years ago
Anders Jenbo
5ff5b4893c
Fix loading alignment
6 years ago
Samuel-DEVULDER
9c516819c1
Make save game code big-endian compatible
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
Anders Jenbo
a91f4e76ba
Fix bad merge
6 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
b90ef1336d
Fix Segfault when loading game
...
Fixes #224
Not this breaks save games generated with master since 2019-07-15
7 years ago
Alex Sweet
b2f3588747
Fix MonstStruct load/save
7 years ago
Anders Jenbo
5ab9f4609a
Clean up signedness
7 years ago
Robin Eklind
105a583ce0
Use TRUE and FALSE enums for setlevel.
...
Also simplify if conditions to make
use of boolean values.
(If the cleanup4 PR ends up increasing
inserts/deletions, then this commit is
probably at fault.)
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
Alex Sweet
10ebca4efd
Fix load/save monster padding
7 years ago
Sergey Semushin
6e36190221
Fix typo in LoadPremium, SavePremium.
7 years ago
Sergey Semushin
15d046dc64
Fix typo in SaveObject.
7 years ago
Alex Sweet
a0f9a9b758
Move SavePlayer and SaveItem down
7 years ago
Alex Sweet
636a8108f9
Fix line endings
7 years ago
Alex Sweet
3f82acec52
Use filthy Windows types
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
356f0361f9
Bufix - pointers
7 years ago
Alex Sweet
9c207f601d
Refactor packing functions
7 years ago
Alex Sweet
a0c295811d
Load 32 bit save files
7 years ago
Joan Karadimov
fce804a09a
Use the dungeon_type enum for leveltype
7 years ago
Anders Jenbo
565bb5aa7d
Adust dFlag enums
7 years ago
Anders Jenbo
fe788c4027
Clean up loadsave.cpp
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
galaxyhaxz
26e9dcb6af
Add enum
7 years ago
galaxyhaxz
f16d0c9276
Extra clean
7 years ago
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl ( #825 )
7 years ago
galaxyhaxz
5238265702
Implement assert support ( #791 )
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Anders Jenbo
9b7da61dcf
Auto format src
7 years ago
Robin Eklind
e915623726
rename SetCursor to SetCursor_ to avoid collision with windows.h
...
Translation done automatically using:
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
7 years ago
Anders Jenbo
c46d92be7a
Format save game related files
8 years ago
Anders Jenbo
6576954831
Clean up types used in gamemenu.cpp
8 years ago
Anders Jenbo
456d651f55
Clean up more bools related to sound.cpp
8 years ago
Anders Jenbo
8e2d0df643
Clean up some bools
8 years ago
Anders Jenbo
f1c8439c64
Change setlvlnum to BYTE
8 years ago
Andrew Dunstan
e34be64ef4
Resolve conflicts
8 years ago
galaxyhaxz
395adc3c6b
Minor fixes ( #379 )
8 years ago
galaxyhaxz
c775439589
Cleanup "loadsave.cpp" ( #376 )
8 years ago