Commit graph

189 commits

Author SHA1 Message Date
Anders Jenbo
edcd92e012 Misc clean ups that missed last round 2020-04-08 21:47:32 +02:00
Anders Jenbo
c3cdc1c4ab Decompose magic numbers 2020-04-08 20:34:31 +02:00
Anders Jenbo
6704657e71 Apply sematic codestyle 2020-04-08 20:34:29 +02:00
Anders Jenbo
7db4ed749a Apply more enums, defines and types 2020-04-08 20:18:11 +02:00
Anders Jenbo
c384711a5f Backport cleanups from hellfire branch 2020-04-08 20:16:32 +02:00
qndel
29682a296e fix pushed in buttons 2020-04-06 08:26:13 +02:00
qndel
5191237f42
enums and stuff (#2024) 2020-04-06 08:04:14 +02:00
Anders Jenbo
53ccf38a8c Bool types 2020-04-06 05:43:20 +02:00
Anders Jenbo
31181b77c4 Bool comparisons 2020-04-06 05:43:20 +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
8f635b779c Correct style of checks 2020-04-06 05:43:20 +02:00
Anders Jenbo
e8454376d3 Semantically get the first item instead of the array 2020-04-06 05:43:20 +02:00
Anders Jenbo
711665ee96 Assign correct data types 2020-04-06 05:43:20 +02:00
Anders Jenbo
cab3ebddf5 Avoid some arrays being of predefined size
This makes it easier to change the array size via content
2020-04-06 05:43:20 +02:00
Anders Jenbo
0a1b4d347c Create defines for spell icons
This will avoids a lot of Hellfire ifdef and generally makes the
caluclations cleaner
2020-04-06 05:43:20 +02:00
Anders Jenbo
c39f668deb Enable some asserts that are helpful for testing 2020-04-06 05:43:20 +02:00
Anders Jenbo
187a021b30
More documentation from sanctuary/notes (#2026) 2020-03-30 11:31:36 +02:00
galaxyhaxz
c632e2d1d0
Names and bug fixes (#1974) 2020-03-12 04:32:53 +01:00
Anders Jenbo
d6f70c56ce Format files 2020-03-01 22:48:17 +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
galaxyhaxz
81ff8e6287 Metallic hydrogen neural array 2020-02-28 16:35:57 -06:00
qndel
d51eee6916 CheckPanelInfo cleanup 2020-02-17 20:59:02 +01:00
Anders Jenbo
f1616060e5 Document CL2 render functions 2020-02-15 17:06:31 +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
qndel
c2587d9786 use enums (#1997) 2020-01-28 17:33:34 +01:00
qndel
3008439bc7 enums and stuff 2020-01-15 15:46:21 +01:00
Marco
29b9c99e5a added some more values from enums (#1955) 2020-01-14 17:30:13 +01:00
Anders Jenbo
0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo
5fa0c5781b Backport cleanups from Hellfire branch 2019-12-15 06:14:57 +01:00
qndel
981c9b9c00 some cleanup (#1823) 2019-12-02 13:18:45 +01:00
galaxyhaxz
6c0bc83115 Fix type for panelstr 2019-12-01 22:15:31 -06:00
Anders Jenbo
cd0a75480d Decompose numbers in DrawSpellList 2019-11-09 21:07:54 +01:00
Anders Jenbo
505701fd48 Decompose numbers in DoSpeedBook 2019-11-09 21:07:54 +01:00
galaxyhaxz
67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Gleb Mazovetskiy
1b24dac942 Add BUGFIX comment in DrawSpell 2019-10-30 00:30:17 +01:00
Anders Jenbo
048429b4cd Apply more constants 2019-10-28 04:29:39 +01:00
Anders Jenbo
71adfe509e Document more attributes 2019-10-28 03:05:40 +01:00
falquinho
c65060ccad Some comments on control functions. 2019-10-26 00:45:11 +02:00
Anders Jenbo
92ab05ea13 Decompose more magic numbers 2019-10-26 00:24:55 +02:00
Anders Jenbo
3e7d352fde Format files 2019-10-21 20:04:14 +02:00
Anders Jenbo
2348c3a8fd Documentations, enums and clean ups 2019-10-21 19:33:14 +02:00
Anders Jenbo
d1914efa41
Make sens of lineoffset (#1810) 2019-10-16 13:52:28 +02:00
Anders Jenbo
6597688eac Rename cell functions 2019-10-13 13:31:56 +02:00
Robin Eklind
9bf8332d48
Merge pull request #1360 from diasurgical/ui_consts
Ui consts
2019-10-07 22:54:54 +02:00
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
2019-09-27 21:02:44 +02:00
qndel
12435a9317 SetSpell cleanup 2019-09-18 00:35:20 +02:00
qndel
522f8f07c6 DrawTalkPan cleanup 2019-09-12 11:22:07 +02:00
qndel
4605c6096f control_up_down cleanup 2019-09-12 11:21:18 +02:00
Anders Jenbo
e24cbb2423 Clean up init_disable_screensaver 2019-09-01 05:59:44 +02:00
Anders Jenbo
27e3696df4 Use consts for drawing ui 2019-08-27 17:55:17 +02:00