Commit graph

55 commits

Author SHA1 Message Date
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)
2019-09-22 01:27:26 +02:00
Anders Jenbo
b90ef1336d Fix Segfault when loading game
Fixes #224
Not this breaks save games generated with master since 2019-07-15
2019-09-21 22:51:07 +02:00
Alex Sweet
b2f3588747 Fix MonstStruct load/save 2019-07-24 13:02:05 +02:00
Anders Jenbo
2fcf8dab70 Merge branch 'master' of github.com:diasurgical/devilution 2019-07-21 19:39:17 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Anders Jenbo
60ee365dff Merge branch 'master' of github.com:diasurgical/devilution 2019-07-20 19:52:50 +02:00
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.)
2019-07-17 20:42:26 +02:00
Robin Eklind
b727d158ab Make _pSLvlVisited into a boolean.
_pSLvlVisited is only ever used in boolean contexts.
2019-07-17 20:36:02 +02:00
Robin Eklind
29eb52b6d0 Make _pLvlVisited into a boolean.
_pLvlVisited is only ever used in boolean contexts.
2019-07-17 20:34:45 +02:00
Alex Sweet
10ebca4efd Fix load/save monster padding 2019-07-15 11:10:28 +02:00
Sergey Semushin
6e36190221 Fix typo in LoadPremium, SavePremium. 2019-07-13 14:04:40 +02:00
Sergey Semushin
15d046dc64 Fix typo in SaveObject. 2019-07-13 10:55:50 +02:00
Alex Sweet
a0f9a9b758 Move SavePlayer and SaveItem down 2019-07-12 00:37:57 +02:00
Alex Sweet
636a8108f9 Fix line endings 2019-07-12 00:37:57 +02:00
Alex Sweet
3f82acec52 Use filthy Windows types 2019-07-12 00:37:57 +02:00
Alex Sweet
aed31ce684 Style fixes 2019-07-12 00:37:57 +02:00
Alex Sweet
c124514391 Add missing pragma pack to some structs 2019-07-12 00:37:57 +02:00
Alex Sweet
356f0361f9 Bufix - pointers 2019-07-12 00:37:57 +02:00
Alex Sweet
9c207f601d Refactor packing functions 2019-07-12 00:37:57 +02:00
Alex Sweet
a0c295811d Load 32 bit save files 2019-07-12 00:37:57 +02:00
Anders Jenbo
4ff5197291 merge devilution 2019-06-28 21:53:52 +02:00
Joan Karadimov
fce804a09a Use the dungeon_type enum for leveltype 2019-06-28 11:58:44 +03:00
Anders Jenbo
ce056b02d8 Merge branch 'master' of github.com:diasurgical/devilution 2019-05-30 14:40:33 +02:00
Anders Jenbo
565bb5aa7d Adust dFlag enums 2019-05-29 16:23:08 +01:00
Anders Jenbo
23e7737c75 Merge branch 'master' of github.com:diasurgical/devilution
Fixes #92
2019-05-05 00:27:08 +02:00
Anders Jenbo
fe788c4027 Clean up loadsave.cpp 2019-05-02 00:16:46 +01:00
Xadhoom
6856fb74e2 Merge upstream beanch 'devilution/master' 2019-04-25 20:44:01 +00:00
Anders Jenbo
65b9fb87a8 Merge branch 'TownDead' 2019-04-24 14:08:25 +02:00
galaxyhaxz
540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo
a907a4d49b Merge branch 'master' of github.com:diasurgical/devilution 2019-04-05 15:21:53 +02:00
galaxyhaxz
26e9dcb6af Add enum 2019-04-02 18:11:56 -05:00
galaxyhaxz
f16d0c9276 Extra clean 2019-04-02 18:06:29 -05:00
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl (#825) 2019-04-02 14:19:28 -05:00
galaxyhaxz
5238265702
Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Xadhoom
5283a9ffd1 Put everything into namespace dvl 2019-03-11 20:10:23 +00:00
Anders Jenbo
9b7da61dcf Auto format src 2019-01-13 18:55:59 +01:00
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}_(' '{}'
2018-12-30 03:19:10 +01:00
Anders Jenbo
b5f69dccdc C compatability from d-p (#519) 2018-12-29 17:54:22 +01:00
Anders Jenbo
b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo
c46d92be7a Format save game related files 2018-10-22 01:49:43 +02:00
Anders Jenbo
6576954831 Clean up types used in gamemenu.cpp 2018-10-21 03:50:52 +02:00
Anders Jenbo
456d651f55 Clean up more bools related to sound.cpp 2018-10-18 20:32:44 +02:00
Anders Jenbo
8e2d0df643 Clean up some bools 2018-10-18 20:32:44 +02:00
Anders Jenbo
f1c8439c64 Change setlvlnum to BYTE 2018-10-18 20:14:58 +02:00
Andrew Dunstan
e34be64ef4 Resolve conflicts 2018-10-06 14:13:19 +02:00
galaxyhaxz
395adc3c6b
Minor fixes (#379) 2018-10-02 23:04:20 -05:00
galaxyhaxz
c775439589
Cleanup "loadsave.cpp" (#376) 2018-10-02 22:43:30 -05:00
nomdenom
1c279c3f89 Fix declaration of gbValidSaveFile (BOOL) (#331) 2018-09-24 15:58:43 +02:00
Anders Jenbo
7da6f4d08a Clean up PM_DoDeath (#317)
* Clean up PM_DoDeath

* Add enum for dFlags
2018-09-24 08:13:48 +02:00