obligaron
0888546d62
Make DvlNet_SendInfoRequest non blocking
4 years ago
KPhoenix
02dc1f193e
Cleanup missiles.cpp ( #3883 )
4 years ago
KPhoenix
8e6433f400
Enable Dungeon Messages in Multiplayer ( #3872 )
...
* Enable Dungeon Messages in Multiplayer
4 years ago
staphen
9b32c8d541
Update libzt to the latest version
4 years ago
ephphatha
6a1091ce09
Rename Korean/Romanian translation files so they are used in fallback resolution
4 years ago
Anders Jenbo
2e0a73e967
Disable stand button when in town
...
Fixes #3290
4 years ago
ephphatha
14aeeaa24d
Don't count invalid items as active items
4 years ago
ephphatha
5fa0dfbc28
Skip loading item locations from file
...
It's safer and easier to rebuild this as we load each item.
4 years ago
KPhoenix
bb9a20f5e9
Implement unused Long War Bow graphic
4 years ago
staphen
d193b90101
Don't deactivate gamepad when graphics settings change
4 years ago
Anders Jenbo
0c109cbfb1
[touch] Update interface scaling when switching fullscreen mode
4 years ago
Anders Jenbo
b0252b3339
Make Gamepad cursor independant of hardware mouse
...
The gamepad cursor (inventory, spells etc) no longer relies on warping a
real mouse cursor. This should make things work better on platforms that
do not support this, like Wayland.
4 years ago
Anders Jenbo
576d946581
Allow use of touch to select world objects
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
Andrew James
d0756ce872
Use native script for translated language names ( #3884 )
...
* Only display options for languages requiring extended fonts if available
4 years ago
ephphatha
0cd7c530bc
Drop connections when a packet with length 0 header is received
...
This prevents malicious connections crashing a game by sending null bytes, but might still allow errors when packets are manually crafted.
4 years ago
Trihedraf
bb68c800bc
move FPS display down due to new display of difficulty
4 years ago
Andrew James
ab95a29697
Get user preferred languages on apple devices ( #3875 )
...
Co-authored-by: Bubio <bubio66@gmail.com>
4 years ago
KPhoenix
2881f13b6d
Bugfix: Level 16 Dungeon Message ( #3871 )
...
* Bugfix: Level 16 Dungeon Message
Applies the commented bugfix to allow the game to play the level 16 audio message when the player enters the level for the first time.
4 years ago
KPhoenix
d544a467e6
Show game Difficulty in Automap ( #3867 )
4 years ago
ephphatha
13c54102e0
Combine Add*Door functions
...
There's a bit of common code, but most of the initialisation logic relies on globals or other functions defined in objects.cpp so it's not really appropriate to move these wholesale into a member of the Object class.
4 years ago
ephphatha
939df1b9c3
Remove duplicate arguments to Add*Door functions
4 years ago
ephphatha
eebea35280
Pass object by reference
4 years ago
qndel
35c5144bde
fix indentation in items table ( #3868 )
4 years ago
Andrew James
fb8467b045
Move platform specific locale lookup code to platform directory ( #3862 )
4 years ago
Andrew James
e1d01aad7c
Replace en_US code with en when searching for user preferred languages ( #3859 )
4 years ago
ephphatha
abe4075a5a
Deduplicate code checking if the player is next to a two-tile object
...
Used to activate sarcophagi from the top/right tile, probably other objects too.
4 years ago
ephphatha
e65959e6fc
Use helper when checking if a player hit an object on attack
4 years ago
ephphatha
a6630eacb6
Use helper when checking if object exists in path.cpp
4 years ago
ephphatha
be2d89efaa
Refactor code for highlighting an object with a cursor
...
Reduces the use of Objects and removes the uses of dObjects in this file
4 years ago
ephphatha
099fad5cb9
Use ObjectAtPosition helper for remaining references in objects.cpp
...
There are a bunch of direct references to dObject related to testing if an area contains the interactable part of an object, this needs further cleanup.
4 years ago
ephphatha
82e9c3ea14
Clean up remaining dObject references in missiles.cpp
4 years ago
ephphatha
279fbe32b3
Tidy up checks for missile collision with objects/tiles
...
This was repeated in multiple places with essentially identical logic. Can expose the existing missiles.cpp function to capture the use in scrollrt.cpp
4 years ago
ephphatha
77a783098d
Use ObjectAtPosition when checking if an item can be dropped
...
This extracts some of the common object logic from ItemSpaceOk and CanPut, these functions are almost identical except for the way players and monsters are checked...
4 years ago
ephphatha
a0019d289d
Use Point based object lookups in themes.cpp
...
Move bookstand lookup inside coinflip if statement, minimises the scope of that pointer.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
ephphatha
0b3c162ea7
Use helper instead of explicit dObject lookup in IsTileWalkable
4 years ago
ephphatha
903b661307
Use ObjectAtPosition for debug object type display
...
The other use of dObject is displaying the contents of that array so makes sense to leave as is. We're also able to remove the map since we can reference the current object type value directly on the returned object.
4 years ago
ephphatha
01ffc2c501
Use ObjectAtPosition helper in DrawObject
4 years ago
ephphatha
379d6e87b3
Move ObjectAtPosition to objects.cpp and make it return a pointer
...
All set maps initialise objects as expected so dObject has the correct ID already, no need to iterate over all active objects. Also by returning a pointer we can use this function to test if an object exists at the target position.
While on msvc int8_t is typedefed to signed char we might as well match the expected data type for the dObject array
4 years ago
ephphatha
e633d7ff1e
Restrict dropping items to adjacent tiles
...
This more closely matches vanilla behaviour until more intelligent dropping item behaviour is implemented (see #3489 )
4 years ago
ephphatha
1abc617e1a
Consistently trigger menu/movie transitions on mouse up instead of down
...
Keypresses still occur on keydown to allow for repetition (e.g. when scrolling)
4 years ago
KPhoenix
1c25cb4bf0
Fixed Event Messages color
4 years ago
Bubio
d1315e934a
Fixed issue #3788
4 years ago
Gleb Mazovetskiy
ccf8cc004d
Spell book: Fix "Level 0 - Unusable" overlap
...
Removes the display of mana and damage for unusable spells
and moves the "Unusable" text onto the second line, fixing
the overlap.
4 years ago
KPhoenix
a08026097a
Chat Interface Revision ( #3840 )
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Anders Jenbo
6de6825ce0
Correct false positives translation warnings
4 years ago
staphen
74a77666b9
Improve behavior of ToControllerButtonEvent()
4 years ago
Anders Jenbo
59e8502743
Fix clicking on triggers on the lower part of the screen
4 years ago
obligaron
18fb40ee32
Settingsmenu: Implement KeyInput
4 years ago
obligaron
419fe7b7ec
Change Keymapper to OptionCategory/OptionEntry
4 years ago