Commit graph

80 commits

Author SHA1 Message Date
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>
2020-03-11 21:27:40 -05: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
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
3008439bc7 enums and stuff 2020-01-15 15:46:21 +01:00
Anders Jenbo
0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo
1372d0f6b0
Update themes.cpp 2019-11-29 01:15:35 +01: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
qndel
ea5c8bd23a SpecialThemeFit cleanup 2019-09-27 15:49:48 +02:00
qndel
d269ef5045 InitThemes cleanup 2019-09-15 11:26:41 +02:00
qndel
70726ba2aa Theme_Library cleanup 2019-09-05 08:18:02 +02:00
galaxyhaxz
12b9e8e8f7 Fix logic in themes.cpp 2019-08-27 15:16:36 +02:00
Joan Karadimov
fce804a09a Use the dungeon_type enum for leveltype 2019-06-28 11:58:44 +03:00
Anders Jenbo
a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Anders Jenbo
565bb5aa7d Adust dFlag enums 2019-05-29 16:23:08 +01:00
galaxyhaxz
82e8d6ed60 Fix trigflag, trigs.cpp bin exact 2019-05-06 23:07:59 +01:00
Anders Jenbo
d70bd3a1e9 Fix CheckThemeRoom 2019-05-04 22:44:47 +02:00
Anders Jenbo
918a997854 Clean up themes.cpp 2019-05-02 00:16:46 +01:00
galaxyhaxz
87d20ef4d6 themes.cpp bin exact 2019-04-30 05:08:09 +02:00
Anders Jenbo
fcadb84daa Correct size of ThemeGoodIn 2019-04-26 19:16:54 +02:00
Robin Eklind
d59b8dfafa
Merge pull request #996 from diasurgical/CheckThemeReqs
Clean up CheckThemeReqs
2019-04-23 03:44:04 +09:00
Anders Jenbo
be3526054c Apply theme_id enums 2019-04-22 19:18:02 +02:00
galaxyhaxz
540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
Anders Jenbo
9c7001c8e2 Clean up CheckThemeReqs 2019-04-21 17:16:54 +02:00
Anders Jenbo
dade490e9f Clean up InitThemes 2019-04-21 03:11:51 +02:00
Anders Jenbo
85921ce416 Clean up CheckThemeRoom 2019-04-21 01:55:47 +02:00
Anders Jenbo
66314fe1d3
Themes.cpp (#989)
* Clean up TFit_Shrine

* Clean up TFit_Obj5

* Clean up SpecialThemeFit
2019-04-20 11:56:34 +02:00
JustAnotherGuid
192e9a93d1 Split up Trigflag array into separate vars 2019-04-13 17:23:41 +02:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo
ba9cf89a9e Clean up TFit_Obj3 2019-04-06 02:46:48 +02:00
Anders Jenbo
ad22f6a216 Clean up TFit_GoatShrine 2019-04-06 02:41:26 +02:00
Anders Jenbo
adf3685c1e Clean up TFit_SkelRoom 2019-04-06 02:37:37 +02:00
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl (#825) 2019-04-02 14:19:28 -05:00
Anders Jenbo
54c73f740c clean up redundant code 2019-03-30 17:14:16 +01:00
Anders Jenbo
df61fc06b0 CheckThemeObj3 bin exact
This also fixes ThemeStruct and there by most functions in themes.cpp
(again)
2019-03-30 17:14:05 +01:00
Anders Jenbo
4a62a7c678 Code style 2018-12-29 02:15:20 +01:00
Anders Jenbo
ab3a6208d2 Use "BOOLEAN" instead of "bool"
bool is not defined in C
2018-11-26 12:35:03 +01:00
Anders Jenbo
8e8bd67ebf Correct ThemeStruct 2018-11-04 23:27:29 +01:00
Anders Jenbo
507d12082f Use MAXDUR* in most instances 2018-11-04 22:27:26 +01:00
Anders Jenbo
20d8934c8f
Merge branch 'nightly' into themes 2018-11-04 20:20:21 +01:00
Anders Jenbo
c0fd7b65fe Correct some BOOL types 2018-11-04 20:13:51 +01:00
Robin Eklind
ee5ffd74f6 Cleanup array literals based on feedback from @galaxyhaxz. 2018-11-01 02:05:14 +01:00
Robin Eklind
f04870114f HoldThemeRooms almost identical.
Uses different registers.
2018-11-01 01:26:38 +01:00
Robin Eklind
8ae9c03b46 PlaceThemeMonsts bin exact. 2018-11-01 01:04:40 +01:00
Robin Eklind
17874b033a Theme_Barrel bin exact 2018-11-01 00:57:01 +01:00
Robin Eklind
7c91a633c2 Theme_Shrine bin exact (already was) 2018-11-01 00:48:19 +01:00
Robin Eklind
354dc82c5f Theme_MonstPit bin exact (already was) 2018-11-01 00:46:20 +01:00
Robin Eklind
8cf5695bbe Theme_SkelRoom almost bin exact.
For some reason, our code gets too optimized, where
common subexpressions are factored out. E.g. if
xp-1 is used inside the if-then and the else body,
then in our version xp-1 is factored out of the if-else
statement and performed directly before the if-condition.

Thus the output code is shorted in our version than the
original.
2018-11-01 00:39:32 +01:00
Robin Eklind
ed32199884 remove check comment 2018-10-31 23:43:52 +01:00
Robin Eklind
fe4ee691ea Theme_Treasure bin exact 2018-10-31 23:29:07 +01:00
Robin Eklind
f09393a5bb Theme_Library almost bin exact
The last if-statement is not perfect.

Also, check value of random instead of using as boolean.
2018-10-31 21:22:10 +01:00