Anders Jenbo
1af53e5754
Clean up RndLocOk
4 years ago
Anders Jenbo
1ff2f9b7f5
Remove dead code from AddNakrulGate()
4 years ago
Anders Jenbo
43311ad375
Use common function for loading .dun tile data
4 years ago
Anders Jenbo
5fcf5ef303
Remove unused quest level code
4 years ago
Anders Jenbo
0205320a1d
Export static transparancy data to .dun files
4 years ago
Gleb Mazovetskiy
8514cc80a9
Migrate embedded button data to PCX
...
It is a bit smaller that way.
Also renders the non-embedded dialogs as PCX.
The embedded dialog is still raw pixel data because it is larger as PCX.
4 years ago
Gleb Mazovetskiy
c380c7fa61
PCX: Add transparency support
4 years ago
Gleb Mazovetskiy
e8c57aae67
Render widescreen cutscene bg as PCX
4 years ago
Gleb Mazovetskiy
5df03f56e3
DiabloUI: Render scrollbar as PCX
4 years ago
Gleb Mazovetskiy
3d5307e3bd
.clang-tidy: Allow single-char loop variables
...
x, y, i, j, etc
4 years ago
Gleb Mazovetskiy
9e9b656b88
DiabloUI: Render backgrounds as PCX
...
The backgrounds can be quite large, for example
the Hellfire title background is a 2.4 MiB PCX file.
Previously, we converted all background to SDL surfaces.
This required extra memory, e.g. the 2.4 MiB Hellfire
title background uses 4.6 MiB as an SDL surface.
Changes the background to render directly from PCX instead
to reduce the allocator pressure.
4 years ago
Gleb Mazovetskiy
220d38aa5c
Direct PCX rendering
4 years ago
Andrew James
4bd1e06336
Point mega <-> world conversion helpers
4 years ago
Anders Jenbo
98a10d262e
Unify PlaceMiniSet
4 years ago
Anders Jenbo
357d477f65
Update DRLG_L1 to use Miniset
4 years ago
Anders Jenbo
55d93a71f1
Switch to using the Minipice class in drlg_l3
4 years ago
Anders Jenbo
e8ed195ef6
Place Anvil from the .dun rather then a hardcoded array
4 years ago
Anders Jenbo
655e879116
Lable Crypt tiles
4 years ago
ephphatha
3e60b02d50
Move the staff skip bugfix out of PlaceMiniSet
...
This makes the code more similar to other drlg routines so they can be combined more easily.
4 years ago
ephphatha
c859ec57d0
Dedupe SP/MP logic when killing archbishop lazarus
4 years ago
Andrew James
129f5b8d02
remove temporary variable in drlg_l4 GenerateLevel
4 years ago
Andrew James
5cc8bcdb8e
Remove no-op GCC pragma instructions
...
Pushing an option then immediately popping it doesn't do much :D
4 years ago
Anders Jenbo
359e31a900
Add PlaceMiniSetRandom1x1() helper for simple replacements
4 years ago
Anders Jenbo
6962fcd63e
Clean up PlaceMiniSet()
4 years ago
staphen
ffa35edbb8
Load OFILE_CANDLE2 when the Poisoned Water Supply quest is available
4 years ago
Anders Jenbo
b2278b85f8
Apply workaround for OOB in DRLG L1
4 years ago
staphen
128f5098e0
Check player hitpoints in InGameMenu()
4 years ago
staphen
56e8dbfec5
Apply CopyUtf8() to SelheroCatToName()
4 years ago
staphen
421a7772b4
Fix error that produces broken character at end of UTF8 string
4 years ago
qndel
fc5b7b3462
[diablo] Fix shrine rng ( #4529 )
...
This bug was less sever in Diablo then Hellfire as it didn't fully initialize the object leading to them sometimes getting garbage as the RNG seed, but it was never working correctly.
4 years ago
Anders Jenbo
d8e8be49d1
Remove unused code from l1 PlaceMiniSet
4 years ago
Anders Jenbo
afec954c9a
Convert dflags to boolean
4 years ago
Anders Jenbo
5c17c92b01
Clean up drlg_l1 door placement
4 years ago
Anders Jenbo
408c665a3c
Remove duplicate code in DRLG_MRectTrans
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
staphen
b349e29058
Correctly indicate when scroll can be used on virtual gamepad
4 years ago
Anders Jenbo
50a222f1a2
Test generating a level for the butcher quests
4 years ago
Gleb Mazovetskiy
9b72565bb0
Fix `RemoveBeltItemById`
4 years ago
Gleb Mazovetskiy
e76d5fc494
UseScroll: use `HasInventoryOrBeltItem`
4 years ago
Gleb Mazovetskiy
c45170d20e
Rename `inv_iterators` methods to `camelCase`
...
Per clang-tidy config
4 years ago
staphen
a2fe3a981e
Fix issues with ears due to translation
4 years ago
k-bar
3ab94ebdb4
Berserk melee unsquelch fix
4 years ago
Anders Jenbo
54cd839cf6
Clean up drlg tests
4 years ago
Gleb Mazovetskiy
129e6fae14
Check for the mushroom quest elixir in the belt
...
Fixes #4583
4 years ago
Gleb Mazovetskiy
628406a44c
Refactor inventory/belt item presence and removal
...
Introduces new functions to check for presence of and remove player items.
These functions do not rely on or expose item indices.
They're implemented as free functions instead of Player methods due to
complicated include dependencies between `player.h`, `inv.h`, and
`inv_iterators.h`. We should probably look into cleaning this up at some
point.
4 years ago
ephphatha
606cc162a1
Use helpers when calculating missile velocity
...
eventually maybe we can move to fixed point approximations instead of using hypot and casts to double/float? probably way slower than using the FPU on modern systems though :D
4 years ago
staphen
695851666e
Fix crash when switching to English
4 years ago
obligaron
1608219b39
Timedemo: Create reference save game and allow comparing of reference save game with actual timedemo save game
4 years ago
Anders Jenbo
8e334ada77
[hellfire] Fix incorrecct monster ids in dun tabel
4 years ago
Anders Jenbo
6d2311931f
[debug] Export levels as dun maps
4 years ago