Robin Eklind
27b40436a9
Use pointers instead of references for Devilution exported API
...
With this change, all exported declarations of Devilution are now
compatible with the C-ABI; that is, all declarations of Source/*.h.
This makes it possible to link against DevilutionX from mods written in
other languages than C++, for instance Rust, Go or Python.
Updates #612 .
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
Max Desiatov
aba60c560d
Fix OOB in missiles.cpp
...
MFILE_NONE does not correspond to the last item of misfiledata array and
is actually greater than the length of that array causing out-of-bounds
crash on iOS (reproduced when applying rogue's Disarm Trap skill).
6 years ago
Anders Jenbo
e724668be5
Apply enum MFILE_FIREWAL
6 years ago
Anders Jenbo
bc2ab2289c
Apply enum MFILE_NONE
...
Thanks to @ MaxDesiatov
6 years ago
qndel
3008439bc7
enums and stuff
6 years ago
galaxyhaxz
1657af4b08
Missing blood boil+FreeMissGFX
6 years ago
Marco
29b9c99e5a
added some more values from enums ( #1955 )
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Anders Jenbo
4610b50d1e
[controller] Handle edge cases for cursor state
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
galaxyhaxz
9c98c1e43d
Fix all "pass by ref" functions
6 years ago
Anders Jenbo
0c75636db3
[controller] Automatically apply heal-other, resurect and disarm
6 years ago
Anders Jenbo
65efc7e3fc
DIR_W
6 years ago
Gleb Mazovetskiy
ef20d1a038
Fix more UBSAN errors
6 years ago
Anders Jenbo
0e578ffb11
Enable assertions
6 years ago
Anders Jenbo
3e7d352fde
Format files
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
qndel
7129558d0b
apply enums
7 years ago
qndel
2c7818c5d9
miss_null_32 cleanup
7 years ago
qndel
4f2fe6174d
GetDamageAmt cleanup
7 years ago
qndel
c8ad43971b
MI_Element cleanup
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
qndel
76eb0a3d68
MI_Firewall cleanup
7 years ago
qndel
4b0ffef781
AddRhino cleanup
7 years ago
qndel
880a5d6b72
AddStone cleanup
7 years ago
qndel
bba1ab1da9
AddResurrectBeam cleanup
7 years ago
qndel
4940163d0e
AddTeleport cleanup
7 years ago
Anders Jenbo
f331d3b5a4
Backport Hellfire cleanups
7 years ago
qndel
61acfa3963
MI_LArrow cleanup
7 years ago
qndel
4d5d8479db
MI_Golem cleanup
7 years ago
qndel
4899eeb962
AddFlash cleanup
7 years ago
qndel
ae0fdc2b6f
MI_Fireball cleanup ( #1525 )
7 years ago
qndel
e4dbac3eb1
MI_Etherealize cleanup
7 years ago
qndel
c30daae0a4
MI_Firemove cleanup
7 years ago
qndel
6d842cef94
AddTown cleanup
7 years ago
qndel
6b9126ba28
replace 50 with range
7 years ago
qndel
35eedb4327
miss_null_1D cleanup
7 years ago
qndel
854e73aa82
MI_Teleport cleanup
7 years ago
qndel
c3a325bf85
MI_Acidsplat cleanup
7 years ago
qndel
0f42653b6f
MI_Flamec cleanup
7 years ago
qndel
bafb09b506
MI_Flame cleanup
7 years ago
qndel
c0c2f82ab7
MI_Hbolt cleanup
7 years ago
qndel
35b5c33f00
MI_Lightball cleanup
7 years ago
qndel
d07c8b805f
Sentfire cleanup
7 years ago
qndel
ce9095fab2
AddFlamec cleanup
7 years ago
qndel
5a79b3c0f1
AddFlash2 cleanup
7 years ago
qndel
4654e753c8
AddEtherealize cleanup
7 years ago
qndel
adf7065579
AddNova cleanup
7 years ago
qndel
dba70750b9
AddFlame cleanup
7 years ago