galaxyhaxz
71565b9c02
Several updates [enums+names] ( #2002 )
...
* Several updates
* Correct msg_get_next_packet
* Update enums.h
Co-Authored-By: Robin Eklind <mewmew@users.noreply.github.com>
Co-authored-by: Robin Eklind <mewmew@users.noreply.github.com>
6 years ago
Anders Jenbo
0383f9abcd
Add documentation to more files
6 years ago
Anders Jenbo
d6f70c56ce
Format files
6 years ago
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)
6 years ago
galaxyhaxz
81ff8e6287
Metallic hydrogen neural array
6 years ago
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
08aa6a860a
Move generic helpers out of miniwin
6 years ago
qndel
3770c8551d
max walkpath ( #1996 )
6 years ago
qndel
308bbc7acb
[hellfire] StripTopGold bin exact
6 years ago
qndel
c31ead5088
[hellfire] WeaponDur bin exact ( #1982 )
6 years ago
qndel
c5fcc643b3
[hellfire] StartPlayerKill bin exact
6 years ago
Anders Jenbo
924e0a991a
[hellfire] PM_DoWalk and PM_DoWalk3
6 years ago
Anders Jenbo
bae579ab90
Align PM_DoWalk, PM_DoWalk2 and PM_DoWalk3
...
Hellfire shows that World* was the correct param
6 years ago
Anders Jenbo
7a302d0239
[hellfire] PM_DoWalk2
6 years ago
Anders Jenbo
2f6801b524
[hellfire] PM_ChangeOffset
6 years ago
Anders Jenbo
4be0564bda
SyncPlrAnim clean up
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
qndel
59ccee969e
[hellfire] InitPlayer bin exact
6 years ago
qndel
b200317d17
[hellfire] SyncInitPlrPos bin exact
6 years ago
qndel
6348672faf
[hellfire] ProcessPlayers bin exact ( #1883 )
...
* [hellfire] ProcessPlayers bin exact
* newline
6 years ago
qndel
db0ac8845f
[hellfire] ValidatePlayer bin exact
6 years ago
Anders Jenbo
046064fcfe
Fix PostMessageA an remove more unused event code
6 years ago
galaxyhaxz
9c98c1e43d
Fix all "pass by ref" functions
6 years ago
Anders Jenbo
d94b245497
[controlls] Prioritize spell targets
...
Spells will now target either the apropriate highlighted actor or the
current direction.
6 years ago
Anders Jenbo
af0a7c0653
Apply SPANEL_WIDTH
6 years ago
Anders Jenbo
003f0b9b75
Prevent casting spells threw spellbook
6 years ago
qndel
d864e3beb7
comment
6 years ago
qndel
f1de846ccb
clicking on the sides of main panel and below side panels
6 years ago
Xadhoom
2134b10d64
more unsigned shifts with cursor handling
6 years ago
Anders Jenbo
c86cec3c5f
Prioritize controller navigation
...
Only do one type of navigation at any one time.
Priority: Inventry, Stats, Spells, Walk.
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Anders Jenbo
92ab05ea13
Decompose more magic numbers
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
Anders Jenbo
2079b67475
Drop dpiece_defs_map_1 memory access optimization
...
This also gets rid of IsometricCoord. They where used to map tiles in a
way that had a simpler access pattern when rendering the screen in
visual oriented rows.
See
https://github.com/diasurgical/devilution/pull/544#issuecomment-450968761
7 years ago
Gleb Mazovetskiy
fb37bbf675
Disable some signed shift UBSAN warnings
...
On Clang we can do this globally via a sanitizer blacklist, but that's not supported on GCC (yet):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61978
We disable these warnings because all compilers implement them in the
same way according to the N2218 proposal to standardize the behaviour:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2218.htm
7 years ago
qndel
83d68786b5
[hellfire] 3 functions bin exact
7 years ago
qndel
b24a30814b
[hellfire] PlayDungMsgs bin exact ( #1797 )
...
* [hellfire] PlayDungMsgs bin exact
* newline
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
Anders Jenbo
d2b1f0cfc8
Apply the Cel helper functions in a few more places
7 years ago
Robin Eklind
d16f603537
all: remove unused storm imports
...
While no storm functions are called from these source files
it is determined that they included storm in the original
source files as made visible by the inclusion of infinity
in the data segments of the respective source files.
ref: diasurgical/devilution#1695 .
7 years ago
Anders Jenbo
c326442f81
[hellfire] PM_DoGotHit
7 years ago
Anders Jenbo
6959371851
[hellfire] SyncPlrKill
7 years ago
Anders Jenbo
b834c4e418
Clean up RemovePlrMissiles
7 years ago
Sergey Semushin
c067846937
hellfire: Make DropHalfPlayersGold bin exact.
7 years ago
Anders Jenbo
f331d3b5a4
Backport Hellfire cleanups
7 years ago
Anders Jenbo
d26fe48942
[hellfire] Correct player structure and related functions
7 years ago
Anders Jenbo
4e5b9312a6
Clean up PM_ChangeLightOff
7 years ago
Anders Jenbo
4051525550
[hellfire] SolidLoc
7 years ago
Anders Jenbo
a3cfdccf68
Add the e variable to AddPlrMonstExper
7 years ago