Cesar Canassa
831796fcd4
♻️ Remove _misource access from SpawnLightning
4 years ago
Cesar Canassa
28f12be8de
PR feedback
4 years ago
Cesar Canassa
1f798bcec5
♻️ Remove _misource access from AddLightningRune
4 years ago
Gleb Mazovetskiy
465ee78afe
Fix `DVL_WM_RBUTTONUP`
...
Missed one case in #5047
4 years ago
Cesar Canassa
8f73844a3b
♻️ Remove _misource access from GuardianTryFireAt
4 years ago
Gleb Mazovetskiy
adf40f5c80
misc_msg: Always use `lParam` for mod state
...
Previously, keyboard events used `lParam` for modifier key state,
while mouse events used `wParam`.
Changes the mouse events to use `lParam`, which allows us to
change `lParam` to `uint16_t`.
Demo migrated with a script.
4 years ago
Anders Jenbo
7fede33416
Remove leftover assert code
4 years ago
Gleb Mazovetskiy
4c1dbaba72
Demo mode: Handle endianness
4 years ago
Anders Jenbo
56915974d6
Minimize passing of player indexes
4 years ago
qndel
25dc9a61ff
fix wrong condition in OnSetStrength
4 years ago
Gleb Mazovetskiy
e5e8ba07c2
Hellfire spell book: Set button widths correctly
...
The hellfire spell book buttons CEL only has 5 frames, all of the
same widths.
4 years ago
Gleb Mazovetskiy
f9b9a7de9d
CL2 render: `Point` position argument
...
Bring the CL2 API closer to CEL and PCX.
4 years ago
Cesar Canassa
94e15b3a11
♻️ Remove _misource access from AddTown
4 years ago
Cesar Canassa
b415474cf5
♻️ Remove _misource access from InitMissiles
4 years ago
Cesar Canassa
7fc08e183d
♻️ Remove _misource access from MoveMissilePos
4 years ago
Cesar Canassa
ac583cbb2d
✨ Adds isSameSource Missile method ( #5036 )
4 years ago
Cesar Canassa
c89b67a4d5
♻️ Remove _misource access from MI_Arrow
4 years ago
Cesar Canassa
95589ebf94
♻️ Remove _misource access from MI_Firebolt
4 years ago
Vladimir Olteanu
8fd3be67b5
Refactor VisionCrawlTable
4 years ago
Anders Jenbo
a45a96fb88
Fix opening crypt and hive
4 years ago
Gleb Mazovetskiy
c30e36d8d2
Fix discord.cpp on macOS
...
Accidentally broken in #5029
4 years ago
Gleb Mazovetskiy
ea1087dfeb
Use `StrCat` in a few more places
...
Now `fmt` is only used for more complex formatting and for translations.
4 years ago
Gleb Mazovetskiy
6f01fb6b79
Unify CEL/PCX/CL2 render functions
...
Except for the outline rendering.
4 years ago
Gleb Mazovetskiy
79e23f26f2
misc_msg: Encode keyboard mod state directly
...
`demo_0.dmo` migrated with a script
4 years ago
Cesar Canassa
aa6ea3907e
♻️ Adds Missile::SourcePlayer and Missile::SourceMonster ( #4999 )
4 years ago
Anders Jenbo
d1189388f5
Use user by reference
4 years ago
Gleb Mazovetskiy
303a6cf5ea
Fix next debug monster key
...
Accidentally changed to ALT+m from SHIFT+m in #5023
4 years ago
Gleb Mazovetskiy
fae441e75f
Remove `DVL_WM_SYSKEYDOWN`, `DVL_WM_SYSKEYCOMMAND`
...
These events were no longer used
4 years ago
Gleb Mazovetskiy
3d4f0b48b8
Remove `TranslateMessage`
...
It has become entirely redundant.
4 years ago
Gleb Mazovetskiy
a4ac41cece
Replace `DVL_VK` virtual key codes with `SDLK`
4 years ago
Anders Jenbo
74eacc1794
Clean up color cycling ( #4966 )
4 years ago
ephphatha
e7708f44d9
Ensures that tests pass
4 years ago
Anders Jenbo
bd175f1c53
Reduce double scans in GetSizeForThemeRoom
...
This takes it from 200% to just 110% tiles scanned during the processes
4 years ago
Vladimir Olteanu
78f2fa6221
drlg_l2: refactor ROOMNODE and HALLNODE
4 years ago
Anders Jenbo
f6f05da485
Clean up game name and password variables
4 years ago
Anders Jenbo
dd2644373d
Use a single main loop in GetSizeForThemeRoom
4 years ago
Anders Jenbo
3f6e6b19db
Restore optional optimization of GetSizeForThemeRoom
...
Looks like this improves performance by about 8%
4 years ago
Anders Jenbo
8d32782b12
Cleanup GetSizeForThemeRoom
4 years ago
Gleb Mazovetskiy
70364013b0
Fix fmt v9 deprecation warnings
...
Version 9 of libfmt deprecates printing `enum` without casting it to an
integral type explicitly (consistent with `enum class`).
4 years ago
Gleb Mazovetskiy
04c3d85179
Remove `MAX_PATH`
...
Rather than using the Windows-like `MAX_PATH`, what we really want is 2
things:
1. Maximum path of a file in an MPQ. This is now `MaxMpqPathSize`.
2. Max size for the known monster paths. This is now 64 for sounds and
TRNs, which is more than enough (picked arbitrarily).
4 years ago
Gleb Mazovetskiy
f9f6949af2
Clean up `effects_play_sound`, `gfnSoundFunction`
4 years ago
Gleb Mazovetskiy
643c707c55
Remove strncmp
4 years ago
ephphatha
e8a50f104e
Restore legacy behaviour
...
Ensures that tests pass
4 years ago
Anders Jenbo
acc4f27f63
Remove last usage of DWORD
4 years ago
Vladimir Olteanu
75ea31e89c
Remove unused misc items
4 years ago
Anders Jenbo
16b65120ea
Clean up LevelMonsterTypes related code
4 years ago
Gleb Mazovetskiy
7ad0ec925f
Reduce sizes of Monster (goal)Vars
...
sizeof(Monster): 168 -> 144
4 years ago
Mikołaj Piróg
262fa9ac2d
Rename MonsterData members ( #5000 )
4 years ago
Anders Jenbo
9cae6dad7d
Clean up most usages of DWORD
4 years ago
Mikołaj Piróg
c38db60d0b
Remove monster name member from monster struct ( #4986 )
4 years ago