Vladimir Olteanu
e6412ff8ab
Use SdlThread in nthread
5 years ago
Vladimir Olteanu
fc8fc46e17
Use SdlThread in dthread.cpp
5 years ago
Vladimir Olteanu
77a3955bae
Introduce SdlThread
5 years ago
Vladimir Olteanu
629bd69fab
Remove duplicate code in AddFooRune
5 years ago
Vladimir Olteanu
fae1e4eee5
Replace CCritSect with SdlMutex
5 years ago
Anders Jenbo
7effa1a931
Merge pull request #2433 from diasurgical/player
5 years ago
obligaron
62ac7cc453
Fix DirOK for unique monsters
5 years ago
Anders Jenbo
a07b30a0c7
Get Towners by reference
5 years ago
Anders Jenbo
de0b3a38b8
Apply code style
5 years ago
Anders Jenbo
e5fc7fd17c
Move remaning symbols in to anonymous namespaces
5 years ago
Anders Jenbo
9c4e34f988
Player by reference
5 years ago
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