Commit graph

8,530 commits

Author SHA1 Message Date
John Törnblom
4a34544678
Port to Playstation 4 (#3988) 2022-02-03 14:50:26 +01:00
staphen
8d5b709749 Restore default Windows audio driver (WASAPI) 2022-02-03 06:40:59 +01:00
Oleksandr Kalko
cbb0c3ad47 Upgrade Gradle build tools 2022-02-02 19:08:27 +01:00
Oleksandr Kalko
f8a49340b5 Update POT from source to include new strings 2022-02-02 16:04:31 +01:00
Anders Jenbo
d11eeaa9ec
Log uninplemented plural expressions (#4017) 2022-02-01 08:30:08 +01:00
Gleb Mazovetskiy
a5e1fa5bbe Load missile frames into a single buffer
Previously, the memory for each frame was allocated separately.

Changes it to allocate a single buffer for all the frames.

This has the following advantages:

1. Less bookkeeping overhead in the allocator.
2. Less alignment overhead (allocator results are max-aligned by default).

We can follow this up with a similar treatment for other multi-file
animations.
2022-02-01 04:04:59 +00:00
Gleb Mazovetskiy
1519e995cf Move store graphics out of stores.cpp
These graphics are used in various places outside of `stores.cpp`.
2022-01-30 14:56:04 +01:00
Gleb Mazovetskiy
6bcac742ed CMake: Link gperftools directly to the binary
Not sure why this is necessary but it fixes the gperf build
2022-01-30 14:56:04 +01:00
Gleb Mazovetskiy
7c07e9a3e1 loadsave.cpp: Fix -Wsign-compare and -Wnarrowing 2022-01-30 14:56:04 +01:00
obligaron
c6abd7401b Preview Frame: Disable for towncast 2022-01-28 21:42:31 +01:00
qndel
9536927301
Display hp/mana values on life/mana orbs (#4006) 2022-01-27 12:19:32 +01:00
Anders Jenbo
a19d3ad6a2 Fix typo of availableMissiles 2022-01-27 05:08:32 +01:00
SimonCeder
993507d1bb
update swedish translation 2022-01-26 23:33:25 +01:00
staphen
422ae249e7 [3DS] Use latest version of makerom 2022-01-26 05:06:22 +01:00
qndel
73a5f4861e changemp/hp commands 2022-01-25 20:49:13 +01:00
qndel
c2b2d0c0e6 use RestoreFullHP/Mana functions 2022-01-25 20:13:50 +01:00
Yuri Pourre
f60760a8e9
Update portuguese translation (#3915) 2022-01-25 01:47:51 +01:00
SergBrNord
374e570b28
Fix russian translation stats labels overlap 2022-01-25 01:43:46 +01:00
ephphatha
eeb9ac3303 Sync dropped items if another player triggers an action on the current level 2022-01-24 21:12:13 +01:00
ephphatha
68b3252d24 Call dropitem when spawning a quest reward in a network game
This allows the item to appear in the delta sync when a new player joins the game, but does not cause the item to drop for other players on the same level at the time the action occurs due to differences in the way this message is handled.
2022-01-24 21:12:13 +01:00
ephphatha
db1d776539 Deduplicate PItem and DItem 2022-01-24 21:12:13 +01:00
ephphatha
000a04ad4d Cleanups from https://github.com/diasurgical/devilutionX/pull/3980 2022-01-23 05:25:48 +01:00
staphen
3546b41be0 Introduce NOEXIT build option to disable Quit Game options in menus 2022-01-23 05:25:48 +01:00
staphen
df830f6495 Save settings before leaving the settings menu 2022-01-23 05:25:48 +01:00
ephphatha
32d397eb2a Add max_size checks when adding missiles to allow for limited size containers
This doesn't handle failed allocations (e.g. if the platform runs out of memory) but makes it easier to use a fixed size container on limited memory devices.
2022-01-23 05:02:57 +01:00
ephphatha
d3c42544a6 Address warnings/dead code 2022-01-23 05:02:57 +01:00
staphen
ca93d852d2 Fix comparison checking for invalid quest state in DeltaSyncJunk 2022-01-22 23:35:50 +01:00
Trihedraf
cf15e2cdc7 Improve Visual Studio Instructions 2022-01-22 21:43:20 +01:00
staphen
dcb376d284 Fix blinking when position desyncs during E/W movement 2022-01-21 11:38:52 +01:00
obligaron
c68eeb25cc Add additional missiles to save game 2022-01-20 23:12:48 +01:00
obligaron
234a053863 Change Missiles Array to std::list 2022-01-20 23:12:48 +01:00
obligaron
a45eca5d40 Remove unused ChainStruct 2022-01-20 23:12:48 +01:00
obligaron
0ed8c941de Replace FindParent and use of var4 to identify parent with pParent member in AddMissileParameter 2022-01-20 23:12:48 +01:00
obligaron
1aabcf295b Add AddMissileParameter 2022-01-20 23:12:48 +01:00
obligaron
ed5a3b3dcb Remove SyncPositionWithParent 2022-01-20 23:12:48 +01:00
KPhoenix
707d8a1379 Mana Shield 1.07 bugfix revision
This is a bugfix for the vanilla 1.06 and earlier Mana Shield logic. In 1.07 Blizzard North "fixed" the Mana Shield logic since the damage reduction would decrease in effectiveness with increased spell level instead of increase. As a fix, they set the damage reduction to a flat value regardless of spell level. Originally, damage reduction started at 1/3 and capped at 1/21 at spell level 7. This fix reverses the order and gives 1/21 damage reduction at spell level 1, and caps at 1/3 damage reduction at spell level 7.
2022-01-20 11:37:54 +01:00
M0Rf30
85ea90c2c4 Update Italian localization 2022-01-20 01:49:20 +01:00
egonzalez
f0ad46066c Add missing translations 2022-01-19 15:37:44 +01:00
staphen
eea5a94ab3 Don't sync position on dead monsters 2022-01-19 09:40:01 +01:00
ephphatha
3bc2eb8471 Use ObjectAtPosition when highlighting from gamepad movement 2022-01-19 03:05:27 +01:00
ephphatha
5c4f6d80e8 Use Point/range iterator in FindItemOrObject
This addresses a todo comment, though not in the way that was originally intended as we no longer use Direction::Omni
2022-01-19 03:05:27 +01:00
ephphatha
fb21ffb635 Define a column major iterator for code requiring that iteration order.
GCC and specifically GCC6 really don't like inheriting common code, requires redefining almost everything.
2022-01-19 03:05:27 +01:00
ephphatha
8a0f81ec12 Pass regionId to TFit_Obj3 to extract reference to themes global 2022-01-19 03:05:27 +01:00
ephphatha
3e991fc9a8 Use Point/range iterator in CheckThemeObj3
This does introduce a slight behaviour difference for some callers. It was possible to read out of bounds due to the bounds check only guarding against negative indexes (e.g. Theme_Library uses 1, MAXDUN - 1 as the bounds, but Theme_ArmorStand includes boundary tiles so could read off the right/bottom edge). Given the way vanilla levels are generated with a border this has no impact in practice.
2022-01-19 03:05:27 +01:00
ephphatha
4eec1bd40c Refactor trap target loop to use range iterator 2022-01-19 03:05:27 +01:00
ephphatha
c4c664c6be Add class to allow iterating over all points in a rectangle
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
2022-01-19 03:05:27 +01:00
ephphatha
c1c56c111f Handle runtime_errors thrown by std::locale constructor
Appears some implementations don't support unknown locales and throw errors instead, causing the language detection to error and not complete.
2022-01-19 03:04:53 +01:00
Robin
b2a623f229
msg: add documentation of cmd_id enum (#3960) 2022-01-19 02:54:45 +01:00
Felipe Wannmacher
6e32bf9794
changed spell circle ui (#3963) 2022-01-19 02:34:04 +01:00
staphen
e0a3c553b4 Add window focus logic for SDL1 2022-01-18 13:13:31 +01:00