ephphatha
9ef77cb428
Use scoped enum for Direction16.
...
Allows renaming the members to share names with Direction members when
representing the same conceptual direction.
5 years ago
ephphatha
956dcc7fc9
Add helper for selecting animation sprites from Direction
...
The use on PlayerAnimationData could be further simplified by adding a helper to PlayerStruct but that'd be introducing another changed file to the PR... Something for later.
The monster version is only used once thanks to the helpers added in previous commits. This was mainly to highlight the similarity between PlayerAnimationData and AnimStruct, AnimStruct could inherit/extend PlayerAnimationData without much trouble.
5 years ago
ephphatha
dda9a5dda0
Remove redundant else statements in L1*OperateDoor functions
5 years ago
ephphatha
9c9426821d
Update MoveMissilePos to use Direction and Displacement types.
...
Remove explicit cases falling through to default case in MoveMissilePos
5 years ago
ephphatha
4158651eb4
Simplify IsPathBlocked logic
...
This could make use of path.cpp::path_solid_pieces if it weren't for path directions being completely unrelated to the Direction enum values.
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
Anders Jenbo
064a70a9b1
Fix double encoding of monster names
5 years ago
Anders Jenbo
5390c9baa3
Add widscreen cutstart
5 years ago
Anders Jenbo
cd79f0204d
🚨 Fix compiler warnings
5 years ago
Anders Jenbo
b74feb01dc
🐛 Correctly check if item name will fit in the info panel
5 years ago
Anders Jenbo
ce66aea070
Optimize masked Art blitting
5 years ago
Anders Jenbo
2d47c12515
Fix charpanel always showing player 0 stats
5 years ago
Anders Jenbo
41f6b62caa
Fix infinit loop if first word overflows the text box
...
Fixes #2829
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
Anders Jenbo
3c246a5930
✨ Add TRN support to PCX loader
5 years ago
obligaron
836bb92e8e
MoveMissileAndCheckMissileCol: Call CheckMissileCol only once for a tile and target
5 years ago
obligaron
730ceee3d2
Make MoveMissileAndCheckMissileCol check skipped tiles
5 years ago
obligaron
8da46627a7
Introduce MoveMissileAndCheckMissileCol
5 years ago
obligaron
f957c3a099
Allow to spawn more than 8 monsters
5 years ago
obligaron
1b3381ce8e
Move CrawlNum to CrawlTable and make it extern visible
5 years ago
obligaron
7d86991534
debug spawn command with configurable monster count
5 years ago
qndel
d47d2e3030
debug monster commands
5 years ago
Siddharth singh chouhan
ec1850e295
Move documentation from implementations to declarations #2735 ( #2836 )
5 years ago
Siddharth singh chouhan
0d3bf15601
Move docs to header
5 years ago
qndel
a46d2c948c
fix golem spawning on top of player
5 years ago
sheng-luwei
d530dd81ca
Update de.po
5 years ago
qndel
90eb35d718
fix golems on maps with set pieces
5 years ago
M0Rf30
5f18852abe
🌐 Update Italian localization
5 years ago
staphen
946ae987a3
[Android] Fix input not being in view for 7.1+
5 years ago
qndel
197d3edd1b
fix loot
5 years ago
ephphatha
af61b21a23
Add whitespace around loops for readability
5 years ago
ephphatha
cdf2db1d94
SaveItem by reference
5 years ago
ephphatha
8ab229e7e8
LoadItemData by reference
5 years ago
ephphatha
78fa540ec9
Save/LoadObject by reference
5 years ago
ephphatha
6fa3018f05
Move Init/FreeMissileGFX functions alongside MissileSpriteData array definition
...
Also combined the two free missile graphics functions as they were always called together (just slightly out of order previously).
5 years ago
ephphatha
851fb87e24
Remove mi argument from DeleteMissile
...
This value is always the current value of ActiveMissiles[i], while the caller has retrieved the index for its own use it's easier to track what the function does by just passing i.
5 years ago
Andrew James
784057780c
Prevent OOB access when initialising quest pools ( #2775 )
5 years ago
Vladimir Olteanu
f530535a58
Simplify PlaceMiniSetRandom
5 years ago
Vladimir Olteanu
3193c077a6
Introduce Miniset::matches
5 years ago
Vladimir Olteanu
82584b2c54
Introduce Miniset::place
5 years ago
Vladimir Olteanu
9b8aec8a42
drlg_l2.cpp: introduce Miniset
5 years ago
Anders Jenbo
2ea317c178
Clean up missile code
5 years ago
Anders Jenbo
ddddb44587
🐛 Fix search spell affecting all players
5 years ago
Anders Jenbo
e848bf77df
🐛 Fix teleport not working in all locations
...
- Player cannot TP to current location
- Cannot teleport to any object location (including doors)
- Can teleport to void locations
- Cannot teleport to dead monsters
5 years ago
qndel
22ff664dee
golem assert fix
5 years ago
Anders Jenbo
5bffa14e70
Define type for MonsterClass
...
Reverts 7af21d289d
5 years ago
Anders Jenbo
8766946bec
[Android] Fix input not being in view for 5.1 - 7.0
...
This is still broken in Android 7.1.1+
5 years ago
Juliano Leal Goncalves
5430672477
🚚 Rename 'UniqMonstStruct' struct to 'UniqueMonsterData' ( #2814 )
5 years ago
Juliano Leal Goncalves
8940ede1ab
🚚 Rename 'TownerStruct' struct to 'Towner' ( #2813 )
5 years ago
Juliano Leal Goncalves
4ea9cd539e
🚚 Rename 'PortalStruct' struct to 'Portal'
5 years ago