Anders Jenbo
ba4ee58c9f
Pass along bools instead of player index
4 years ago
Anders Jenbo
1c286b5624
Directly call StartMonsterDeath instead of feeding M_StartKill invalid input
4 years ago
Anders Jenbo
d82f2ebc9e
Pass players by reference instead of an index
4 years ago
Anders Jenbo
e47599c45f
Clean up BreakBarrel
4 years ago
Anders Jenbo
0d27761ac2
Make _oAnimFlag a boolean
4 years ago
Anders Jenbo
4c62905381
Deduplicate OperateLever
4 years ago
Anders Jenbo
21fd0fb686
Split delta sync from realtime sync
4 years ago
obligaron
c955722c32
Fix portal don't deactive on set levels
4 years ago
Anders Jenbo
9d167e22c1
Clean up Operate Door
4 years ago
Vladimir Olteanu
84687fec42
Remove spurious "I can't cast that here"
4 years ago
Anders Jenbo
b3b5d16633
Clean up DrawPlayerIconHelper
4 years ago
k-bar
842a6e3d7e
[Hellfire bug] fix Fire Ring trap
...
MI_FireRing adds missiles MIS_FIREWALL with TARGET_BOTH and src equals
to either player ID, or -1 if Fire Ring is casted as trap. This has
consequences:
1. Because TARGET_BOTH MonsterMHit was called, as it usually called for
Firewalls. During this calls reference to Player gets garbage data (id
-1). This may miscalculate:
- no heal flags
- knockback flags (already fixed in this PR)
- unsquelch position.last
2. drops ear for firewall flame originating from Fire Ring from trap
Fix:
- Separated TARGET_BOTH from IsTrap for monsters to ensure TryHitMonster
will get passed TrapMissile (MonsterTrapHit) is called instead.
- added additional condition for earflag
4 years ago
Anders Jenbo
f5e7a98fbf
Avoid using -1 as a discriminator
4 years ago
Anders Jenbo
147cb426c8
Fix traps and monsters hitting monsters
...
Fixes #4669
4 years ago
obligaron
0d2a23254e
Use binaryformat for demofile ( #4799 )
4 years ago
k-bar
618c478620
fallen fear absolute dMonster id
4 years ago
Anders Jenbo
eb7673e0ee
Fix building on VS2017 ( #4795 )
4 years ago
Vladimir Olteanu
2588cc12d7
Reduce reliance on `bool done` for control flow, part 2 of x ( #4741 )
4 years ago
obligaron
88a0b5ba60
IsValidLevelForMultiplayer: Fix last set level is wrongly assumed as invalid
4 years ago
obligaron
7a27fcd249
Fix pfile_compare_hero_demo: Close MpqWriter before reading (for comparsion)
4 years ago
k-bar
05bcfd4ad6
FallenFear retreat distance based on level
4 years ago
obligaron
d94380953e
Fix automap not saved in multiplayer quest/set-maps
4 years ago
obligaron
3cb55c95a4
DebugCmdLoadQuestMap: Don't load entry quest lvl if the hero is already on this level
4 years ago
k-bar
6a6f1263dc
lazarus minion missile fix
4 years ago
obligaron
07de7e2d7c
Fix "Restart in Town" when dying on a quest/set map
4 years ago
k-bar
4bb6bfbf79
fix fallen retreat direction bug
4 years ago
k-bar
046bd0c356
M_FallenFear refactor
4 years ago
Anders Jenbo
72656b3011
Move path and palette to the engine folder
4 years ago
Gleb Mazovetskiy
8ba3387f54
Reduces `stext` stack use (16K -> 4K)
...
1. Reduces the sizes of variables in `STextStruct`.
2. `char[128]` -> `std::string`
4 years ago
k-bar
f685eb2704
Fallen warcry dungeon inbound fix for vanilla bug
4 years ago
k-bar
4934eb465f
redundant GoatAi removal
4 years ago
k-bar
62bcd4b393
AiRangedAvoidance rafactor
4 years ago
Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
Anders Jenbo
b870ebf115
order src files
4 years ago
k-bar
2dfe958fff
AiRanged refactors ( #4779 )
4 years ago
ephphatha
c68fcf3cb1
Apply MethodCase config to Rectangle::Contains
...
Also included Circle and VirtualButton classes due to the shared use.
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
Kalebe Alves
4130c37d17
Enforce override virtual methods
4 years ago
Gleb Mazovetskiy
c6e107433a
CMake: Fix SimpleIni on vcpkg
4 years ago
ephphatha
c1ef9c8255
Use Rectangle::contains for IsNearThemeRoom check
...
would be able to use a Rectangle::grow helper if it wasn't for the off-by one, but maybe cleaning up the way theme dimensions are set will help?
4 years ago
ephphatha
3354c57ca8
Rename SkipThemeRoom/invert logic to match use
4 years ago
ephphatha
de05ce6562
Use theme room attributes directly instead of recalculating
4 years ago
ephphatha
306a92b897
Remove duplicated anvil size/area calc in PlaceAnvil
4 years ago
ephphatha
3af11ad355
Use the same function when checking and actually dropping an item
4 years ago
Gleb Mazovetskiy
de3c9874c7
Migrate large bool arrays to `std::bitset`
...
E.g. `dRendered` size is reduced by 10 KiB
4 years ago
Gleb Mazovetskiy
127c6bc9e1
Fix finding SimpleIni
...
The version in Ubuntu 22.04 comes without `ConvertUTF.{h,c}`.
We actually do not need `ConvertUTF.{h,c}` and starting from
v4.19 it is possible to tell SimpleIni to not include it
by setting `SI_NO_CONVERSION`.
Sets `SI_NO_CONVERSION` and raises the minimum required SimpleIni
version to 4.19.
4 years ago
Andrew James
812d9f83dd
Remove duplicate defines
...
included in both #4757 and #4755
4 years ago
Gleb Mazovetskiy
01ad1814ea
Make path finding index-based
...
Reduces the size of the `PathNodes` array from 28 KiB to just 8 KiB.
Also reduces the size of `pnode_tblptr` from `300 * sizeof(void *)` to
`300 * 2` bytes.
4 years ago
Andrew James
f846263462
Restore change to trigger position when advancing betrayer quest ( #4752 )
4 years ago
Gleb Mazovetskiy
8e9c9e0238
Reduced the size of `OwnedCelSprite*` by 8 bytes
...
`OwnedCelSpriteWithFrameHeight`: 40 -> 32
4 years ago