Gleb Mazovetskiy
af869ac732
Merge branch 'master' into dev-merged
2023-09-01 20:49:34 +01:00
Eric Robinson
e3d79ae1c1
Fix automap ( #6513 )
2023-08-29 13:43:13 +02:00
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
2023-08-14 09:59:14 +01:00
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
2023-08-14 01:54:29 +01:00
Eric Robinson
074a1f2e0c
Rename: Loopback -> Offline ( #6300 )
2023-07-03 06:37:53 +02:00
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
2023-05-10 16:29:27 +01:00
obligaron
0d2e43daa8
Add search monster/item/object debug commands
2023-02-26 04:40:31 +01:00
obligaron
60d9f35d5a
Make SearchAutomapItem parameterizable
2023-02-26 04:40:31 +01:00
Anders Jenbo
a29fc3a074
Correct casing for Player::isWalking()
2023-01-12 09:42:49 +01:00
qndel
c05c4c0f55
fix typos
2022-09-17 20:19:05 +02:00
Anders Jenbo
e348fa3b1e
Implement town map
2022-09-12 08:09:17 +02:00
Anders Jenbo
f9fae00958
Fix formatting
2022-08-31 02:29:02 +02:00
zaid-ismail031
b0c9a8024e
Refactor missiles.cpp to use Direction enum instead of magic Point/Displacement constants.
2022-08-30 21:25:44 +02:00
Gleb Mazovetskiy
188dc79f6e
Make Players a vector
2022-08-26 13:22:04 +09:00
Gleb Mazovetskiy
6327e713e0
Lowercase all file paths
...
We want to be able to use unpacked MPQs on low-end platforms
(PS2/rg99/etc).
This is tricky on case-sensitive filesystems. Avoids case issues by
lowercasing all paths in the code (then we'll just need lowercased
listfiles).
2022-08-20 23:49:23 +01:00
obligaron
2493f06116
ActorPosition: Remove offset, offset2 and velocity
2022-08-03 21:25:21 +02:00
obligaron
a410e989bf
Remove ScrollInfo
2022-08-03 21:25:21 +02:00
Vladimir Olteanu
77353d2db9
Turn AmLine* into inline function
2022-08-02 21:12:40 +02:00
Anders Jenbo
d1189388f5
Use user by reference
2022-07-17 18:41:05 +02:00
Anders Jenbo
f6f05da485
Clean up game name and password variables
2022-07-16 20:15:07 +02:00
Gleb Mazovetskiy
04c3d85179
Remove MAX_PATH
...
Rather than using the Windows-like `MAX_PATH`, what we really want is 2
things:
1. Maximum path of a file in an MPQ. This is now `MaxMpqPathSize`.
2. Max size for the known monster paths. This is now 64 for sounds and
TRNs, which is more than enough (picked arbitrarily).
2022-07-16 11:14:16 +01:00
Gleb Mazovetskiy
643c707c55
Remove strncmp
2022-07-16 10:59:40 +01:00
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
2022-07-10 21:13:39 +02:00
Cesar Canassa
6579aa53c5
Normalise the player and monster walking function naming ( #4877 )
...
Both player and monster walking functions are not named WalkNorthwards, WalkSouthwards and WalkSideways.
Also renames the PLT_MODE enum to follow the same pattern and removes the comments that are now unnecessary
2022-07-03 20:28:06 +02:00
Anders Jenbo
72656b3011
Move path and palette to the engine folder
2022-06-24 16:34:20 +02:00
Anders Jenbo
6d56058708
Move level generation to subfolder
2022-06-23 09:21:58 +02:00
obligaron
19749420b5
Introduce Player::isOnActiveLevel
2022-06-18 17:05:30 +02:00
Gleb Mazovetskiy
1fc8ecb6f6
Add fmt::runtime annotations for C++20 support
...
`fmt` requires non-contexpr format string arguments to be wrapped in
`fmt::runtime` in C++20.
2022-06-14 12:46:36 +01:00
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
2022-06-14 12:46:36 +01:00
Anders Jenbo
1203514383
Clean up use of currlevel
2022-06-07 21:35:01 +02:00
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
2022-05-31 05:35:52 +02:00
obligaron
bc15bdf3a9
Remove PANEL_ defines and replace them with GetMainPanel()
2022-05-29 20:20:44 +02:00
obligaron
1124dd1bd2
Don't show hostile players in automap
2022-05-20 22:46:48 +02:00
obligaron
70c5cf6cad
Fix item label text with open stash ( #4595 )
...
* Item labels: check if stash is open in IsMouseOverGameArea
* Add IsLeft/RightPanelOpen
2022-05-20 09:12:54 +02:00
Anders Jenbo
0645d9b2a1
Correct missing hellfire level mapping in leveltype
...
Hellfire never added the 2 new dungion types, instead it makes
additional checks on currlevel. This is confusing and mess, so cleaned
it up.
2022-05-10 15:16:38 +02:00
Anders Jenbo
1409e604f5
Reduce string conversions
2022-03-20 11:04:15 +01:00
KPhoenix
d544a467e6
Show game Difficulty in Automap ( #3867 )
2021-12-31 05:28:51 +01:00
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
2021-11-07 03:11:16 +01:00
qndel
7250aeae66
tweak automap colors
2021-10-25 16:57:16 +02:00
Anders Jenbo
b9b4b9eea0
Fix OOB in DrawAutomapTile
2021-10-25 04:43:35 +02:00
qndel
e567953bc9
Sharing automap exploration in multiplayer
2021-10-25 02:58:41 +02:00
staphen
ffbbcc6d62
Support unencrypted multiplayer games with no password
2021-10-25 01:14:37 +02:00
qndel
9f7c69f4f5
improve southeast arrow
2021-10-01 12:44:11 +02:00
qndel
560066585a
center automap arrow
2021-10-01 12:44:11 +02:00
qndel
6bd48907e0
fix jumping arrow
2021-10-01 09:28:10 +02:00
ephphatha and Anders Jenbo
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 <[email protected] >
Fix alignment of WalkSettings array
2021-09-12 02:27:47 +02:00
Anders Jenbo
7169882b1f
✨ Implement new font rendering
2021-09-12 01:37:28 +02:00
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
2021-09-04 18:06:28 -04:00
Anders Jenbo
df636c0afc
Remove DIR_OMNI
2021-08-23 10:51:06 +02:00
Anders Jenbo
23fdb5aa27
[vanilla] Fix missing dirt corners in automap
2021-08-11 02:33:22 +02:00