Jonathan Bergeron
33ad9fa187
renamed Source/mainmenu.cpp and .h to menu.cpp/.h
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
obligaron
1956c6a1c2
Fix some 64bit warnings
5 years ago
obligaron
70db8456ba
Remove _pwtype and replace it with UsesRangedWeapon
5 years ago
obligaron
d1d61fcd0f
Convert anim_weapon_id and anim_armor_id to enum class
5 years ago
ephphatha
4f6255791a
Be more consistent with parameter names
5 years ago
ephphatha
cecb5e5d2b
Move private functions into anonymous namespace
5 years ago
ephphatha
a8ed1998d1
Use Point in path_ functions that reference position
...
In cases like path_get_h_cost this allows simplifying logic where Point provides functions for the intended behaviour in a much simpler to understand package.
This also makes it clearer which functions are const/don't modify the node and which potentially have side effects.
5 years ago
ephphatha
7de18d27cf
Extract door object type test to ObjectStruct method
...
This removes the direct reference to _object_id values in path.cpp, that enum is now only used in objects.h/cpp
5 years ago
ephphatha
097a519bb7
Be more defensive when interacting with the path node stacks
5 years ago
ephphatha
f01d551eb0
Add tests for path_get_h_cost, IsTileWalkable, IsTile(Not)Solid, path_solid_pieces, FindPath
...
Only path_solid_pieces and FindPath are used outside the file, but the other functions are exposed in the header and have behaviour I felt worth testing individually.
5 years ago
Anders Jenbo
3ffedb7a69
💄 Apply code style to src
5 years ago
Anders Jenbo
b168773cc4
🚨 Fix clang warnings
5 years ago
Anders Jenbo
b591824182
💚 Fix NOSOUND build
5 years ago
Vladimir Olteanu
dd4b70a24b
* dthread.cpp: replace TMegaPkt with DThreadStruct
...
* consistently use uint8_t for pnum
* get rid of checks that never fail
* use atomic_bool for dthread_running
* dthread: eliminate superfluous memory copies
* Pass correct-sized buffer to DeltaExportJunk
* dthread: Fix crash when list is empty
* DthreadHandler: eliminate delay
* Dthread: use SdlMutex and lock_guard
* dhtread: explicitly provide T for lock_guard
5 years ago
Vladimir Olteanu
7e67ec6399
SdlMutex: error checking
5 years ago
obligaron
837ddc0396
Fix a warning in soundsample.cpp
5 years ago
obligaron
1ca1dab410
Fix warnings in controller_motion.cpp
5 years ago
obligaron
91fe708e8f
Fix warnings in ui_item.h
5 years ago
Anders Jenbo
78124fb389
Add GolemHoldingCell
5 years ago
Anders Jenbo
4d59c248ea
Remove unused return from SpawnSkeleton
5 years ago
Anders Jenbo
bef214d0ca
Clean up monster ide handeling in CheckMissileCol
5 years ago
Anders Jenbo
b3470b296c
♻️ [controls] Only check active monsters when looking for a target
5 years ago
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
5 years ago
Anders Jenbo
9264ad4b89
Use IsTileNotSolid() in place of !nSolidTable[dPiece[][]]
5 years ago
Anders Jenbo
2d4da488f0
Split path test functions
5 years ago
staphen
9b5117d807
Fix Discord links in platform manuals.
5 years ago
obligaron
b08c8aa0ed
MSVC disable warning for unecure CRT functions (for example strcpy)
5 years ago
obligaron
6dbbfca030
Don't use -fpermissive on msvc
5 years ago
Vladimir Olteanu
829f45ee6d
SdlMutex: check result of SDL_CreateMutex ( #2400 )
5 years ago
ephphatha
190025e79f
Use bound parameters for pathfinding functions operating on entities
5 years ago
ephphatha
488ee03f53
Use bound functions for LineClear test function pointer
5 years ago
Anders Jenbo
4e82c70fcb
Make MonsterIsTileAccessible aware if monsters can open doors or not
5 years ago
FluffyQuack
ba60907853
Hold mouse button to keep attacking (Diablo 2-style) ( #2349 )
5 years ago
ephphatha
0efb134e18
Add tests for quest randomisation code
...
Required splitting the code to a separate function so it can be tested in isolation
5 years ago
Anders Jenbo
dfde45c29a
Clean up CheckNewPath target loading
5 years ago
qndel
4f4bef623c
fix upper left inventory corner ( #2394 )
5 years ago
Vladimir Olteanu
7271e5558c
Get rid of unchecked calls to malloc
5 years ago
obligaron
d2048c7ac0
Debug: Show save number in hero selection
5 years ago
obligaron
8b79041477
Allow creating hero with the same name
5 years ago
obligaron
f5b437dd9c
Use save number to load/save games (instead of hero name)
5 years ago
Jonathan Bergeron
57d445d32f
made pause / unpause safer and fixed issue with autopause when losing focus during the loading screen
5 years ago
obligaron
5ed79c38ef
Introduce MissilePosition.StopMissile
5 years ago
Anders Jenbo
e82d103465
🐛 Fix bounds checks in monster code
5 years ago
Anders Jenbo
a089692850
💄 Introduce MonsterRelation enum
5 years ago
Anders Jenbo
4cdcff90db
🐛 Fix Zhar state not being set when triggered
...
Instead the first players golem was reset
5 years ago
obligaron
c1991d32a5
Fix ScrollViewPort
5 years ago
qndel
efaeffcab8
fix guardian ( #2383 )
5 years ago
qndel
3fcbe2de3b
fix dungeon ( #2381 )
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago