Commit Graph
333 Commits
Author SHA1 Message Date
Anders Jenbo 893efd51ea Merge branch 'master' of github.com:diasurgical/devilution 2020-09-27 03:34:42 +02:00
Robin Eklind 7d0eff7888 missiles: add BUGFIX for AddRndTeleport
If `dObject[dx][dy]` is zero, then `pn = -1`, which causes an
out-of-bounds access to object. If the memory `object[-1]._otype`
is either 84 or 85, then the player is randomly teleported to the
location of the Vile Betrayer quest. This can be triggered either
by interacting with a holy shrine or by casting phasing.

	"Wherever you go, there you are"
2020-07-18 14:23:40 +02:00
Robin Eklind dc6f9b6585 missiles: add BUGFIX comment for GetDirection16 2020-07-13 02:29:25 +02:00
Anders Jenbo 7108145a04 Merge branch 'master' of github.com:diasurgical/devilution 2020-04-14 15:30:49 +02:00
Anders Jenbo 3b8bcf98bf Enable assertions 2020-04-11 15:22:40 +02:00
Anders Jenbo 2ec7c78eae Format source 2020-04-08 22:28:53 +02:00
Anders Jenbo f1c216e688 Make player struct x/y fields match monster struct 2020-04-07 03:26:38 +02:00
Anders Jenbo 3c5982083f Merge branch 'master' of github.com:diasurgical/devilution 2020-04-06 12:05:13 +02:00
Anders Jenbo a02167a648 Use correct defines for variables
This also defines MAXRESIST and DEBUGSEEDS
2020-04-06 05:43:20 +02:00
Anders Jenbo 776ab10476 Merge branch 'master' of github.com:diasurgical/devilution 2020-03-29 23:40:05 +02:00
Anders Jenbo 0383f9abcd Add documentation to more files 2020-03-02 02:29:28 +01:00
Anders Jenbo 3c276a3cd3 Add documentation
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00
Anders Jenbo 25993b4043 Merge branch 'master' of github.com:diasurgical/devilution 2020-02-14 23:03:31 +01:00
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.
2020-02-14 22:41:13 +01:00
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).
2020-02-14 13:12:54 +01:00
Anders Jenbo 40ba1e7a6f Merge branch 'master' of github.com:diasurgical/devilution 2020-02-01 14:48:39 +01:00
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).
2020-01-20 17:27:24 +01:00
Anders Jenbo e724668be5 Apply enum MFILE_FIREWAL 2020-01-20 16:56:13 +01:00
Anders Jenbo bc2ab2289c Apply enum MFILE_NONE
Thanks to @ MaxDesiatov
2020-01-20 16:38:45 +01:00
qndel 3008439bc7 enums and stuff 2020-01-15 15:46:21 +01:00
galaxyhaxz 1657af4b08 Missing blood boil+FreeMissGFX 2020-01-14 22:19:53 +01:00
Marco 29b9c99e5a added some more values from enums (#1955) 2020-01-14 17:30:13 +01:00
Anders Jenbo da03bae69d Merge branch 'master' of github.com:diasurgical/devilution 2019-12-25 20:38:25 +01:00
Anders Jenbo 0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo 4610b50d1e [controller] Handle edge cases for cursor state 2019-12-21 21:11:35 +01:00
Anders Jenbo 9a704ff2f0 Merge branch 'master' of github.com:diasurgical/devilution 2019-12-19 01:05:01 +01:00
Anders Jenbo 5fa0c5781b Backport cleanups from Hellfire branch 2019-12-15 06:14:57 +01:00
galaxyhaxz 9c98c1e43d Fix all "pass by ref" functions 2019-12-02 09:16:01 +01:00
Anders Jenbo 0c75636db3 [controller] Automatically apply heal-other, resurect and disarm 2019-11-20 10:49:16 +01:00
Anders Jenbo c86ab3bed3 Merge branch 'master' of github.com:diasurgical/devilution 2019-11-17 21:46:59 +01:00
Anders Jenbo 65efc7e3fc DIR_W 2019-11-10 01:00:42 +01:00
Gleb Mazovetskiy ef20d1a038 Fix more UBSAN errors 2019-11-07 10:02:09 +01:00
Anders Jenbo 4e8a8d2157 Merge remote-tracking branch 'refs/remotes/devilution/master' 2019-10-26 13:43:28 +02:00
Anders Jenbo 0e578ffb11 Enable assertions 2019-10-22 19:04:55 +02:00
Anders Jenbo 3e7d352fde Format files 2019-10-21 20:04:14 +02:00
Robin Eklind e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
Anders Jenbo d840f388c7 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-08 22:05:10 +02:00
qndel 7129558d0b apply enums 2019-10-05 15:24:44 +02:00
qndel 2c7818c5d9 miss_null_32 cleanup 2019-10-02 05:37:36 +02:00
qndel 4f2fe6174d GetDamageAmt cleanup 2019-09-30 02:34:52 +02:00
qndel c8ad43971b MI_Element cleanup 2019-09-30 02:05:23 +02:00
Anders Jenbo 64824cab2b Implement CelGetFrameStart 2019-09-28 06:07:24 +02:00
Anders Jenbo fae2be813a Merge branch 'master' of github.com:diasurgical/devilution 2019-09-28 04:31:04 +02:00
qndel 76eb0a3d68 MI_Firewall cleanup 2019-09-20 20:05:46 +02:00
qndel 4b0ffef781 AddRhino cleanup 2019-09-20 20:05:11 +02:00
qndel 880a5d6b72 AddStone cleanup 2019-09-20 20:05:00 +02:00
qndel bba1ab1da9 AddResurrectBeam cleanup 2019-09-20 07:11:19 +02:00
qndel 4940163d0e AddTeleport cleanup 2019-09-20 04:43:47 +02:00
Anders Jenbo 14f8c9368a Merge branch 'master' of github.com:diasurgical/devilution 2019-09-13 17:51:58 +02:00
Anders Jenbo f331d3b5a4 Backport Hellfire cleanups 2019-09-05 15:20:27 +02:00