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
c540f74709
Clean up calls to WriteFile
2020-04-06 05:43:20 +02:00
Anders Jenbo
0f514f25de
Apply WinAPI enums and macros
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
660405505f
Remove C compat
...
It's unmaintained and clear that we won't be going back since some
functions can only be solved with C++
2020-04-06 05:43:20 +02:00
Anders Jenbo and GitHub
187a021b30
More documentation from sanctuary/notes ( #2026 )
2020-03-30 11:31:36 +02:00
Anders Jenbo
312168d4c1
Reformat the .clang-format files
...
These files are YAML, changes to a more idiomatic YAML syntax
2020-03-29 20:45:57 +02:00
galaxyhaxz
f89204e7dd
Fix function/var names (effects/sound)
2020-03-24 00:22:36 -05:00
galaxyhaxz and GitHub
c632e2d1d0
Names and bug fixes ( #1974 )
2020-03-12 04:32:53 +01:00
Anders Jenbo
e7bd82b44a
A handful of param names and consts
2020-03-12 04:22:49 +01:00
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 >
2020-03-11 21:27:40 -05:00
Robin Eklind and Anders Jenbo
038666db18
nthread: add parameter name to nthread_handler
...
Fixes the following error when compiling as C with Clang:
Source/dthread.cpp:92:46: error: parameter name omitted
unsigned int __stdcall dthread_handler(void *)
^
Related to #2017 .
2020-03-09 00:32:23 +01:00
Robin Eklind and GitHub
54a23821f2
Merge pull request #2018 from mewpull/dtherad-wait-inf
...
dthread: use INFINITE enum for second argument to WaitForSingleObject
2020-03-08 18:25:52 +01:00
Robin Eklind and Anders Jenbo
dce389599e
dthread: add parameter name to dthread_handler
...
This fixes a build error in dthread_handler when compiling as C.
Source/dthread.cpp:92:46: error: parameter name omitted
unsigned int __stdcall dthread_handler(void *)
^
2020-03-08 18:12:09 +01:00
Robin Eklind
f6e6b4b56f
dthread: use INFINITE enum for second argument to WaitForSingleObject
2020-03-08 17:56:06 +01:00
Robin Eklind and Anders Jenbo
3130ae3593
codec: fix build error of codec.cpp when compiling as C
...
Prior to this commit, the following error was encountered when compiling
as C using Clang:
Source/codec.cpp:20:2: error: must use 'struct' tag to refer to type 'CodecSignature'
CodecSignature *sig;
^
struct
2020-03-08 15:59:29 +01:00
Robin Eklind and GitHub
09e25b1e10
Merge pull request #2014 from mewpull/bug-SetupAllItems
...
Document BUG in SetupAllItems when recreating unique items.
2020-03-03 11:11:34 +01:00
Anders Jenbo
0383f9abcd
Add documentation to more files
2020-03-02 02:29:28 +01:00
Robin Eklind
68a8f07d2b
Document BUG in SetupAllItems when recreating unique items.
2020-03-01 23:33:28 +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
Anders Jenbo
21b62274b9
Document .SOL value tables
2020-02-29 18:32:02 +01:00
galaxyhaxz
81ff8e6287
Metallic hydrogen neural array
2020-02-28 16:35:57 -06:00
qndel and Anders Jenbo
34caded4de
fix hotkeys
2020-02-22 00:27:12 +01:00
qndel and Anders Jenbo
d51eee6916
CheckPanelInfo cleanup
2020-02-17 20:59:02 +01:00
Anders Jenbo
ab453a5bb0
Correct some documentation
2020-02-16 05:00:36 +01:00
Anders Jenbo
e7e51abd13
Document remaning functions in render related files
2020-02-16 04:01:52 +01:00
Anders Jenbo
a29d64b923
Document engine.cpp functions
2020-02-16 01:42:41 +01:00
Anders Jenbo
f1616060e5
Document CL2 render functions
2020-02-15 17:06:31 +01:00
Anders Jenbo and GitHub
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
09c41c666f
Update monster.cpp
2020-02-01 13:57:53 +01:00
qndel and Anders Jenbo
a1321539fb
enums
2020-01-31 23:29:55 +01:00
qndel and Anders Jenbo
a6a89bca3a
apply TRUE/FALSE
2020-01-31 19:22:51 +01:00
qndel and Anders Jenbo
c2587d9786
use enums ( #1997 )
2020-01-28 17:33:34 +01:00
qndel and Anders Jenbo
3770c8551d
max walkpath ( #1996 )
2020-01-27 10:52:00 +01:00
Anders Jenbo and GitHub
e724668be5
Apply enum MFILE_FIREWAL
2020-01-20 16:56:13 +01:00
Anders Jenbo and GitHub
bc2ab2289c
Apply enum MFILE_NONE
...
Thanks to @ MaxDesiatov
2020-01-20 16:38:45 +01:00
qndel and Anders Jenbo
6214779459
DrawZoom cleanup
2020-01-19 14:26:43 +01:00
galaxyhaxz and Anders Jenbo
6605e1de5e
Fix variable 'gbSelectProvider'
2020-01-17 21:07:10 +01:00
qndel and Anders Jenbo
f57af2fa7d
tMsgSaid type change
2020-01-17 17:44:40 +01:00
qndel and Anders Jenbo
3008439bc7
enums and stuff
2020-01-15 15:46:21 +01:00
galaxyhaxz and Anders Jenbo
1657af4b08
Missing blood boil+FreeMissGFX
2020-01-14 22:19:53 +01:00
Marco and Anders Jenbo
df2e6b2bb9
affix_item_type enum
2020-01-14 19:12:16 +01:00
Marco and Anders Jenbo
29b9c99e5a
added some more values from enums ( #1955 )
2020-01-14 17:30:13 +01:00
Anders Jenbo
7ec6f39dc8
MAXQUESTS variable
2020-01-12 23:56:06 +01:00
Anders Jenbo
aedf8c993b
PressKey clean up
2020-01-12 23:20:36 +01:00
Anders Jenbo
8a2cd19d95
DisableInputWndProc clean up
2020-01-12 09:59:43 +01:00
Anders Jenbo
cee06d07a7
Correct spelling of color
2020-01-10 11:13:47 +01:00
Anders Jenbo
bae579ab90
Align PM_DoWalk, PM_DoWalk2 and PM_DoWalk3
...
Hellfire shows that World* was the correct param
2020-01-10 00:42:34 +01:00