obligaron
5b6beac375
Introduce Player::getAnimationFramesAndTicksPerFrame
2022-09-04 17:58:18 +02:00
Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
2022-08-26 13:22:04 +09:00
Gleb Mazovetskiy
188dc79f6e
Make Players a vector
2022-08-26 13:22:04 +09:00
Anders Jenbo
f6b167683c
Correct some header includes ( #5239 )
2022-08-15 10:57:28 +09:00
Vladimir Olteanu
74232f13bf
Get rid of dthread
2022-08-03 02:18:54 +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
Anders Jenbo
acc4f27f63
Remove last usage of DWORD
2022-07-16 09:39:50 +02:00
Anders Jenbo
9cae6dad7d
Clean up most usages of DWORD
2022-07-14 23:50:12 +02:00
Gleb Mazovetskiy
33ac2cca8e
♻️ Make Monster counters size_t
2022-07-12 03:04:53 +01:00
Anders Jenbo
a7be622aa3
Clean up naming of event handler
2022-07-10 21:13:39 +02:00
Anders Jenbo
2d21fc372e
Remove more miniwin code
2022-07-10 21:13:39 +02:00
Anders Jenbo
6a8fd04067
Use player by references ( #4938 )
2022-07-10 11:40:04 +02:00
Gleb Mazovetskiy
197e1180b2
Add StrCat and StrAppend
...
Adds simple string / integer concatenation functions.
Many of the uses of `fmt::format` are simply concatenation
of a few strings and integers.
`StrCat` is an easier-to-read alternative to such uses of `fmt`.
2022-07-10 06:14:58 +02:00
ephphatha
1fb45a7f25
Take Player reference in FixPlrWalkTags
2022-07-10 06:03:10 +02:00
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
2022-07-06 10:21:22 +02:00
Mikołaj Piróg
dda0b96ea5
Remove #defines in player.h and add constexpr where applicable ( #4896 )
...
* Change defines to constexpr int in player.h
* Add const or constexpr to player.h/cpp where applicable
* Update tests with changed names of player constatns
* remove unecessary variable
2022-07-05 17:25:23 +02:00
Anders Jenbo
0b7ad34c9d
Take player by reference in StartWalkStand and RemovePlrMissiles ( #4874 )
2022-07-03 21:17:07 +02:00
k-bar
26de74f4a2
AnimationInfo class correct style ( #4870 )
...
* AnimationInfo class correct case-style for private members
clang-tidy warnings:
readability-identifier-naming invalid case style for private member
* AnimationInfo class correct case-style for members
clang-tidy warnings:
readability-identifier-naming invalid case style for member
* AnimationInfo class correct case-style for methods
clang-tidy warnings:
readability-identifier-naming invalid case style for method
* AnimationInfo class use nodiscard
clang-tidy warnings:
modernize-use-nodiscard function should be marked [[nodiscard]]
2022-07-03 16:55:37 +02:00
Gleb Mazovetskiy
72660d9189
Migrate snprintf to fmt ( #4845 )
...
* Migrate `app_fatal` from printf to libfmt
* Migrate snprintf to fmt
2022-07-02 02:36:17 +02:00
Gleb Mazovetskiy
3b2e560fa0
Non-int versions of Point and Displacement ( #4824 )
...
* Non-int versions of `Point` and `Displacement`
This will allow us to make some structs, such as `ActorPosition`, much
smaller.
* ActorPosition: Use smaller types
`Monsters`: 56K -> 46K
* player.cpp: Reduce size of `DirectionSettings`
* CrawlTable: Displacement -> DisplacementOf<int8_t>
* CrawlTable: vector<vector> -> array<vector>
Also only allocate one vector during construction instead of two.
A bit less indirection.
* Monster#enemyPosition: Point -> WorldTilePosition
sizeof(Monster): 240 -> 232
* Monster: Further optimize field layout and sizes
sizeof(Monster): 232 -> 208
`Monsters` is down to 40,000 bytes
* DMonsterStr: _mx/_my -> position
2022-07-02 01:49:17 +02:00
Mikołaj Piróg
2e7ff45fbf
Monster global constants cleanup ( #4827 )
...
* Change #defines to constexpr const, add constexpr where applicable, fix typos
2022-07-01 00:43:03 +02:00
Anders Jenbo
223fbe8387
Correctly check size of glpMsgTbl
2022-06-30 02:59:23 +02:00
Anders Jenbo
bf47c95fe6
Consistant variable comparisons
2022-06-30 02:59:23 +02:00
obligaron
184290a977
Support setlevel in multiplayer
2022-06-18 17:05:30 +02:00
obligaron
d0c14fe92f
Introduce Player::setlevel
2022-06-18 17:05:30 +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
Anders Jenbo
54cd839cf6
Clean up drlg tests
2022-06-05 16:43:06 +02:00
qndel
d5744ba421
fix multiplayer
2022-06-01 18:41:27 +02:00
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
2022-05-31 05:35:52 +02:00
obligaron
2b0b944afb
Manage friendly mode per player and sync state between clients
2022-05-20 22:46:48 +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
staphen
08494378e4
Ignore leave requests if the player leaving is the local player
2022-05-08 14:56:48 +02:00
staphen
851b03215b
Accept all PT_MESSAGE packets when buffering messages
2022-05-06 02:40:48 +02:00
staphen
eb485c2e89
Validate remote players in multiplayer games
2022-04-25 03:58:19 +02:00
staphen
5093d324ee
Fix order of operations when reading from Single Player save
2022-04-24 16:18:36 +02:00
Gleb Mazovetskiy
a66ca44695
Zero-based frame indexing
...
Index frames starting at 0 instead of 1.
2022-04-14 04:39:26 +01:00
Gleb Mazovetskiy
ade8aba822
Fix some more warnings
2022-04-14 01:26:29 +02:00
staphen
c27364dd86
Do not exit game on network timeout
2022-03-21 02:01:40 +01:00
obligaron
299469c710
Sync mana between clients
2022-03-20 23:24:08 +01:00
Anders Jenbo
1409e604f5
Reduce string conversions
2022-03-20 11:04:15 +01:00
qndel
48f102eff1
Chat log
2022-03-06 01:02:55 +01:00
obligaron
79b926c375
Move more options to OptionEntryBase
2022-02-05 20:51:54 +01:00
staphen
dcb376d284
Fix blinking when position desyncs during E/W movement
2022-01-21 11:38:52 +01:00
staphen
b85485b8f3
Resolve game crash when syncing Diablo items in Hellfire games
2022-01-17 00:31:27 +01:00
KPhoenix
34266ff4c7
Show correct death animation ( #3953 )
...
Shows death animation based on what armor you are wearing while dying. Dropping items on death results in showing light armor animation.
2022-01-15 20:24:19 +01:00
staphen
aeddbb7f98
Reset game info after failing to join game
2022-01-07 14:07:49 +01:00
KPhoenix and Anders Jenbo
a08026097a
Chat Interface Revision ( #3840 )
...
Co-authored-by: Anders Jenbo <[email protected] >
2021-12-25 10:11:42 +00:00
obligaron
0f5fd4a7b1
Add OptionEntry Friendly Fire
2021-11-24 09:31:39 +01:00