Juliano Leal Goncalves
ba66a9dc87
♻️ Replace 'dmaxx' and 'dmaxy' globals with single 'dmaxPosition'
2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
6583410152
♻️ Replace 'dminx' and 'dminy' globals with single 'dminPosition'
2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
2021-09-04 18:06:28 -04:00
BC Ko
40c804c0ba
Replace QuestStatus() with IsAvailable() in QuestStruct
2021-08-19 02:12:20 +02:00
BC Ko
c85d3f4b21
Merge pull request #2555 from bcko/2348_bcko_refactor_FindTransparencyValues_2
2021-08-10 10:32:29 +02:00
BC Ko
bcd60ea0b4
refactor 3 versions of FindTransparencyValues in: drlg_l1.cpp, drlg_l2.cpp, drlg_l4.cpp ( #2554 )
2021-08-10 08:50:51 +02:00
qndel
3fcbe2de3b
fix dungeon ( #2381 )
2021-07-15 14:41:25 +02:00
Andrew James
4f73794a53
Restore dropped cases for fence fix and vertical wall checks ( #2353 )
2021-07-11 12:28:17 +02:00
Anders Jenbo
65d7b3c1eb
Use AdvanceRndSeed() when changing RNG with out use
2021-07-10 17:30:15 -07:00
Anders Jenbo
35ccc8eb1c
Apply clang-tidy to code
2021-07-10 17:30:15 -07:00
Anders Jenbo
74b57558c9
🚚 Move local code to anonymous namespace
2021-07-10 17:30:15 -07:00
Anders Jenbo
85ee14710a
Align naming and style in DRLG algorithms
2021-07-09 16:54:01 -07:00
Anders Jenbo
6fe4cb32b5
Move DRLG functions in to the same relative order
2021-07-09 16:54:01 -07:00
Anders Jenbo
352a0ca510
Place local symbols in an anonymous namespace
2021-07-09 16:54:01 -07:00
Anders Jenbo
9ebdb6db69
General clean up
2021-07-08 03:30:25 -07:00
Anders Jenbo
9b8bf92575
Rename quest globals
2021-07-08 02:01:14 -07:00
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
2021-07-04 19:34:37 +02:00
Anders Jenbo
cb564a2d54
Clean up A-D
2021-07-04 05:25:37 -07:00
Anders Jenbo
fc353fc799
Clang-tidy: FunctionCase
2021-07-03 15:46:39 -07:00
qndel
373f1db22e
If cleanup + bugfixes ( #2273 )
2021-07-01 18:32:25 +02:00
Anders Jenbo
51b71b01c9
Clean up variable init in drlg files
2021-07-01 01:33:07 -07:00
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
2021-06-27 03:09:41 -07:00
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract CelSprite and file loading
2021-06-21 01:36:20 -07:00
Juliano Leal Goncalves
0d4e792551
♻️ Change 'SetMapMonsters' to take a 'Point' instead of 2 separate ints
2021-05-25 04:09:02 +02:00
Anders Jenbo
fa0b286693
♻️ Typed file loading
...
Tthis gives us the option to specify what type a file should be loaded
as, avoidng the need to case it and does some automatic checks on the
fitness of the data, while making the process simpler.
If no type is given then the type will be set to std::byte which limit
what operations can be performed on the data.
2021-05-04 19:08:37 +02:00
Gleb Mazovetskiy
052b4c12f5
♻️ LoadFileInMem: Remove nullptr at call sites
...
This is now the default argument, no need to provide it explicitly.
2021-05-01 20:51:55 +02:00
Gleb Mazovetskiy
1b8b62a8c2
♻️ Store CEL width with the sprite itself
...
Instead of passing the CEL sprite width when drawing, store the CEL
width at load time in the new `CelSprite` struct.
Implemented for most sprites except towners, missiles, or monsters.
2021-05-01 20:51:55 +02:00
Anders Jenbo
f884ba5340
🔥 Remove more miniwin dependencies
2021-04-29 23:04:56 +02:00
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
2021-04-25 01:25:48 +02:00
Anders Jenbo
e9fe8e986d
♻️ Deduplicate DRLG_LPass3
2021-04-23 04:53:46 +02:00
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
2021-04-23 02:48:25 +02:00
Anders Jenbo
1e3ed903be
🎨 strip redundant else
2021-04-22 00:39:48 +02:00
Anders Jenbo
8cb2f9ff61
🧹 Add define for chance a wall is added to the dungeon
2021-04-22 00:08:19 +02:00
Anders Jenbo
593c6a6f17
🎨 Drop unused param and rename random_ to GenerateRnd
2021-04-22 00:08:19 +02:00
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
2021-04-22 00:08:19 +02:00
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
2021-04-21 05:31:17 +02:00
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
2021-04-19 16:02:05 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
2021-04-10 12:21:21 +02:00
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
2021-04-10 05:24:01 +02:00
Anders Jenbo
4f8b5e2f5f
🎨 Correct style of true comparisons
2021-04-09 15:13:02 +02:00
Anders Jenbo
36ebd857ad
🎨 Correct style of false comparisons
2021-04-09 15:13:02 +02:00
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Anders Jenbo
6a7c8f24f4
♻️ Use if instead of switch for bool cases
2021-03-20 20:39:28 +01:00
Gleb Mazovetskiy
86bc2ee9da
dlrg: Place constants in an anonymous namespace ( #1114 )
2021-03-06 09:56:47 +01:00
MrHuu
b8eac1929c
[3DS] use -O2 / exclude DRLG_L4FloodTVal from optimizing
2021-02-21 00:31:13 +01:00
qndel
ab9911064f
unify checks for single and multiplayer
2021-02-18 22:32:01 +01:00