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
Anders Jenbo
a22c0d0f9b
[hellfire] missiles_steal_pots ( #1995 )
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
Anders Jenbo
c6a7eef54d
[hellfire] mi_fire_ring
6 years ago
Anders Jenbo
58640581be
[hellfire] mi_light_ring
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
7 years ago
Anders Jenbo
65efc7e3fc
DIR_W
7 years ago
Gleb Mazovetskiy
ef20d1a038
Fix more UBSAN errors
7 years ago
Anders Jenbo
0e578ffb11
Enable assertions
7 years ago
Anders Jenbo
3e7d352fde
Format files
7 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
7 years ago
qndel
a4852904be
sneaky bug
7 years ago
qndel
5d7e0d04f6
[hellfire] GetDamageAmt bin exact
7 years ago
qndel
3f1cdf9bc8
[hellfire] GetDamageAmt bin exact
7 years ago
qndel
7129558d0b
apply enums
7 years ago
qndel
2c7818c5d9
miss_null_32 cleanup
7 years ago
qndel
c5859e1393
[hellfire] MonsterTrapHit bin exact ( #1751 )
7 years ago
qndel
4f2fe6174d
GetDamageAmt cleanup
7 years ago
qndel
c8ad43971b
MI_Element cleanup
7 years ago
qndel
df145cca47
[hellfire] MI_Blodboil bin exact
7 years ago
qndel
2ba8affc8f
[hellfire] AddBlodboil bin exact
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
qndel
d626908a53
[hellfire] missiles_4359A0 bin exact ( #1731 )
7 years ago
qndel
4f993682d0
[hellfire] missiles_search bin exact ( #1704 )
7 years ago
qndel
8db7acf3bb
[hellfire] AddStone bin exact ( #1714 )
7 years ago
galaxyhaxz
0a5e772ccc
Fix missiles_warp & MAXTRIGS
7 years ago
qndel
67bd946295
MI_Manashield suggestions
7 years ago
qndel
76eb0a3d68
MI_Firewall cleanup
7 years ago
qndel
99b1fd3560
[hellfire] MI_Firebolt bin exact
7 years ago
qndel
4b0ffef781
AddRhino cleanup
7 years ago
qndel
880a5d6b72
AddStone cleanup
7 years ago
Anders Jenbo
da0662c90c
[hellfire] correct substraction in missiles_berserk
7 years ago
Anders Jenbo
2bd53a70a7
[hellfire] clean up missiles_berserk
7 years ago
qndel
e34d2846a3
[hellfire] MI_Rune bin exact
7 years ago
qndel
e42a888b82
newline
7 years ago
qndel
e2123123ba
[hellfire] MI_Manashield bin exact
7 years ago
qndel
ed4f056cf5
[hellfire] missiles_berserk bin exact ( #1702 )
7 years ago
Anders Jenbo
ad74e68ade
[hellfire] missile data
7 years ago
qndel
cab1e2c0ad
[hellfire] InitMissiles bin exact
7 years ago
qndel
b98dfd3f21
changed CMD_NOVA into CMD_REFLECT
7 years ago