Gleb Mazovetskiy
e4de2ad177
Fix UB: Signed integer overflow engine.cpp:1264
7 years ago
Gleb Mazovetskiy
1ec5fa7896
Fix UB: load/store of misaligned render.cpp:130
...
Source/render.cpp:130:47: runtime error: load of misaligned address 0x7fea0df260da for type 'DWORD', which requires 4 byte alignment
Source/render.cpp:130:26: runtime error: store to misaligned address 0x7fea5796ff62 for type 'DWORD', which requires 4 byte alignment
7 years ago
Anders Jenbo
dc5bbd0c49
Implement DefWindowProc directly in MainWndProc
7 years ago
Anders Jenbo
73a7a1ae6d
Remove unimplemented functions that aren't needed with SDL
7 years ago
arczi84
1ab2fb2666
Endian madness
7 years ago
Marlon Beijer
d641c65562
Some fixes for Big Endian systems
7 years ago
Anders Jenbo
ba9288c6cf
Unify error dialogs, for looks and portability
...
- Use UiOkDialog() to display all error messages
- Add SDL simple message, and console fallbacks to UiOkDialog()
- Boot graphics early on to facilitate most error messages with build in
gui
- Some more miniwin clean ups
7 years ago
qndel
06e7b4dbdb
more enums
7 years ago
qndel
7129558d0b
apply enums
7 years ago
Anders Jenbo
edbc23f144
Clean up diablo.cpp
7 years ago
qndel
ee590ad129
DrawAutomapType cleanup
7 years ago
Anders Jenbo
a8dd5dcd4a
Correct signature of FuncDlg
...
This reduces a lot of the casting in appfat.cpp
7 years ago
Anders Jenbo
6d982f6d06
Correct parameter naming for init_test_access
7 years ago
Anders Jenbo
683a50527d
Correct missmatched bool types
7 years ago
Anders Jenbo
c97388386c
Correct textdat.cpp for shareware version
...
This fixes all speech missing for towners.
7 years ago
qndel
0fb6025948
scrollrt_draw_lower_2 cleanup
7 years ago
qndel
2dadb3e3a3
scrollrt_draw_lower cleanup
7 years ago
Gleb Mazovetskiy
4ea3a4e941
Make Source/ dialogs call DiabloUI/dialogs.cpp
...
The diabdat.mpq absence error is handled by stubbing the art with solid
colors.
7 years ago
qndel
6b286941f3
enums
7 years ago
qndel
23386285a9
GetStaffPower cleanup
7 years ago
qndel
2c7818c5d9
miss_null_32 cleanup
7 years ago
qndel
93f7c5f935
AddWeaponRack cleanup
7 years ago
qndel
2cef74bd57
AddArmorStand cleanup
7 years ago
Anders Jenbo
d2c4b461d4
Add option to compile shareware version
7 years ago
qndel
7665acfaf1
encode_enemy cleanup
7 years ago
Anders Jenbo
d2b1f0cfc8
Apply the Cel helper functions in a few more places
7 years ago
qndel
a994a5cd0f
MAI_Zhar cleanup
7 years ago
qndel
5a9aee7b92
PreSpawnSkeleton cleanup
7 years ago
qndel
4f2fe6174d
GetDamageAmt cleanup
7 years ago
qndel
c8ad43971b
MI_Element cleanup
7 years ago
Anders Jenbo
e97061f126
Correct bad definition of nDataSize
7 years ago
Anders Jenbo
ed746a6d2d
Fix Cl2DecodeFrm3
7 years ago
Anders Jenbo
1a2f2b5f52
Implement CelGetFrameClipped from the Mac 9 port
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
Anders Jenbo
6dd0893bce
Implement CelGetFrameSize
7 years ago
Anders Jenbo
ce6fc51b50
Implement CelGetFrame (CEL decoder helper)
...
This implements the first of the inlined CEL decoder helper functions
that are still visable in the Mac port code.
Functions are still bin exact
7 years ago
qndel
ea5c8bd23a
SpecialThemeFit cleanup
7 years ago
Anders Jenbo
890f414cb9
Small clean up of unused code
7 years ago
qndel
1516ad57ac
GetManaAmount cleanup ( #1737 )
7 years ago
qndel
449b9fd2dc
CastSpell cleanup
7 years ago
Anders Jenbo
743ebc2048
Always load MPQ files in read-only mode
7 years ago
Anders Jenbo
e88e574c5f
Drop unimplemented code
7 years ago
Anders Jenbo
06bcd3c3f9
Handle file paths in a clean way
...
Belated birthday present for @mewmew
Functions for gettings paths have sensible names
It's using snprintf for safe? string concat
Paths don't use \ as path reporator, or magic marker
Drop code for copying pre 1.09 save games from the windows folder
7 years ago
Anders Jenbo
606d5536f2
Set version and project name via CMake
7 years ago
qndel
0704393bc3
StoreAutoPlace cleanup
7 years ago
qndel
d0421621c4
InitMonsterGFX cleanup
7 years ago
qndel
5253e28584
InitAutomap cleanup
7 years ago
qndel
d3389f3f7c
DrawSLine cleanup
7 years ago
qndel
ddec3ce5bb
PrintStoreItem cleanup
7 years ago
Anders Jenbo
1d03064fee
Clean up sound code
7 years ago