Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
5 years ago
obligaron
cb62e7bf2d
Fix automap jiggling for player arrow
5 years ago
obligaron
d63fcded76
Refactor PlaceGroup ( #2425 )
...
* Rename MonstPlace -> CanPlaceMonster
* Refactor custom hitpoints and armorclass out of mUnqAttr
* Introduce enum UniqueMonsterPack
5 years ago
Anders Jenbo
f0a7a5c989
🎨 Apply code style
5 years ago
Anders Jenbo
069249f318
🚚 Move local function to anonymous namespace i-p
5 years ago
Anders Jenbo
6227c0a012
Cancel targeted attack on dead targets
...
Fixes #962
5 years ago
Anders Jenbo
4260d4cfcc
Add OperateObject to MouseAction
...
For continiously operate fountains etc
Fixes #1133
5 years ago
obligaron
dae9d7eff5
Enable ADL (GetOffsetForWalking) for automap
5 years ago
Anders Jenbo
f5406e7ce1
🚨 Fix warnings related to gdwCurPathStep signed ness
5 years ago
Anders Jenbo
62986869ab
Make GroupUnity take MonsterStruct
5 years ago
obligaron
20de9746eb
GroupUnity: Remove unused code for minions that are uniques themself
5 years ago
obligaron
91c8503ea5
Rename leaderflag to leaderRelation and MonsterRelation to LeaderRelation
5 years ago
obligaron
a677a61f13
Refactor GroupUnity
5 years ago
obligaron
a61d33ae02
GroupUnity: Revert changes from commit a44781bd73 Fix bounds checks in monster code
5 years ago
Vladimir Olteanu
f8d98560ae
Refactor timed message handling
5 years ago
Vladimir Olteanu
9ac3e49d6e
msg.cpp: get rid of excessive indentation
5 years ago
Vladimir Olteanu
d8da397795
Use std::list to manage TMegaPkts
5 years ago
Vladimir Olteanu
84bc4d8c65
dthread: simplify synchronization logic ( #2419 )
5 years ago
obligaron
207c182fdf
Only save diablo.ini if there are changes
5 years ago
Vladimir Olteanu
d7a4e20485
Fix monster sync on kill
...
Fixes https://github.com/diasurgical/devilutionX/issues/2412
5 years ago
Anders Jenbo
899d1886c1
🐛 Fix multi target attack not hitting left side targets
5 years ago
Anders Jenbo
f4897c3139
Clean up MouseAction code
5 years ago
Anders Jenbo
a2bed56061
Clean up some variables in control.cpp
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
753b5698f7
Remove unconventional assert() implementations
5 years ago
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