Commit graph

315 commits

Author SHA1 Message Date
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
a08026097a
Chat Interface Revision (#3840)
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-12-25 10:11:42 +00:00
obligaron
0f5fd4a7b1 Add OptionEntry Friendly Fire 2021-11-24 09:31:39 +01:00
obligaron
e6320090ac Add OptionEntry Cow Quest 2021-11-24 09:31:39 +01:00
obligaron
a69cd0db2a Add OptionEntry Theo Quest 2021-11-24 09:31:39 +01:00
obligaron
31f0b91783 Add OptionEntry Run in Town 2021-11-24 09:31:39 +01:00
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG (#3135) 2021-11-07 03:11:16 +01:00
Gleb Mazovetskiy
3d308983a8 Migrate to libmpq
libmpq is a much simpler alternative to StormLib for reading MPQ archives.

We use our own fork of libmpq: https://github.com/diasurgical/libmpq

Impact:

* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
  needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
2021-11-06 23:51:42 +00:00
staphen
ffbbcc6d62 Support unencrypted multiplayer games with no password 2021-10-25 01:14:37 +02:00
qndel
2ae06f1cf5
use SNPLAYER_OTHERS (#3117) 2021-10-13 17:48:58 +02:00
Anders Jenbo
b4f699f0a3 Validate item network messages 2021-10-12 04:56:30 +02:00
Anders Jenbo
a56452eec3 Validate player sync 2021-10-12 04:56:30 +02:00
Anders Jenbo
614fba6af6 Cleanup package slicing 2021-10-04 19:22:34 +02:00
Anders Jenbo
58257c7cdc Remove unessesery null checks in multi_msg_add 2021-10-03 10:12:14 +02:00
Anders Jenbo
7001ead263 Mark network pointers as const 2021-10-02 20:30:16 +02:00
obligaron
3bd6091297 Rename debug_mode_key_i to DebugDisableNetworkTimeout 2021-09-17 21:05:31 +02:00
Siddharth singh chouhan
ba161f623e
Move documentation from implementations to declarations. (#2858) 2021-09-13 15:45:38 +02:00
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
2021-09-12 02:27:47 +02:00
Anders Jenbo
2d47c12515 Fix charpanel always showing player 0 stats 2021-09-12 01:37:28 +02:00
Juliano Leal Goncalves
28134d099c 🚚 Rename 'PkPlayerStruct' to 'PlayerPack' 2021-08-30 08:01:53 +02:00
Anders Jenbo
4044fadeb5 Clean up some players references 2021-08-30 03:26:17 +02:00
Anders Jenbo
d07b2204d3 Remove -j argument
Use the changelevel command instead
2021-08-19 20:36:12 +02:00
Anders Jenbo
6bc8475e8c Clean up debug commands for loading levels 2021-08-19 20:36:12 +02:00
Anders Jenbo
9c4e34f988 Player by reference 2021-07-20 01:35:56 +02:00
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input (#2430) 2021-07-20 00:30:35 +01:00
Vladimir Olteanu
f8d98560ae Refactor timed message handling 2021-07-18 17:35:52 +02:00
Anders Jenbo
0889780923 Remove more usage of miniwin types 2021-07-18 02:11:58 +02:00
Jonathan Bergeron
33ad9fa187 renamed Source/mainmenu.cpp and .h to menu.cpp/.h 2021-07-18 01:31:15 +02:00
Vladimir Olteanu
dd4b70a24b
* dthread.cpp: replace TMegaPkt with DThreadStruct
* consistently use uint8_t for pnum
 * get rid of checks that never fail
 * use atomic_bool for dthread_running
* dthread: eliminate superfluous memory copies
* Pass correct-sized buffer to DeltaExportJunk
* dthread: Fix crash when list is empty
* DthreadHandler: eliminate delay
* Dthread: use SdlMutex and lock_guard
* dhtread: explicitly provide T for lock_guard
2021-07-17 15:03:51 +02:00
obligaron
f5b437dd9c Use save number to load/save games (instead of hero name) 2021-07-16 02:22:54 +02:00
Anders Jenbo
96bf75b502 Rename player globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
07ad083fda Rename monster globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
bc0d1f7ac0 clang-tidy/Android Stuidio cleanups 3 2021-07-04 16:09:32 -07:00
Anders Jenbo
4eabc6024b Apply various cleanups via Android Studio 2021-07-03 18:27:17 -07:00
Anders Jenbo
a7c7fa0030 Fully apply clang-tidy/format to all files 2021-07-03 16:41:43 -07:00
Anders Jenbo
fc353fc799 Clang-tidy: FunctionCase 2021-07-03 15:46:39 -07:00
Anders Jenbo
129342d07a Clang-tidy: GlobalConstantCase 2021-07-02 22:56:56 +02:00
Anders Jenbo
0f2ad469ea ♻️Clean up variable initialization 2021-06-27 14:58:51 -07:00
Anders Jenbo
8e07ef8fe5 Clang-tidy: misc-unused-parameters 2021-06-27 17:34:32 +02:00
ephphatha
357f6f1dc3 Move RNG functions to their own header/source files 2021-06-27 03:09:41 -07:00
Anders Jenbo
bf780be1ed ♻️Cleanup all implicit bool conversions 2021-06-26 16:32:44 -07:00
Anders Jenbo
35b2aa4947 ♻️Unfold a few functions 2021-06-24 15:11:09 -07:00
Anders Jenbo
ee7b32d8f6 Player by reference part 3 2021-06-24 00:53:09 +02:00
Gleb Mazovetskiy
4ea7ba0f5f 🚚 engine.h: Extract LoadLE32 and LoadBE32 2021-06-21 02:34:28 -07:00
Gleb Mazovetskiy
f9f301b054 🚚 engine.h: Extract Point, Direction, clamp
`engine.h` is getting quite bloated. Moves this code to their own files.
2021-06-21 01:36:20 -07:00
Anders Jenbo
cd1d1242b6 Reset all players on game start 2021-06-13 15:11:27 +02:00