Anders Jenbo
98e4310cad
Index Minis by tile instead of by coordinate
4 years ago
Anders Jenbo
d8c65a8c31
[diablo] Fix some floor tiles in hell being marked as solid
4 years ago
Anders Jenbo
860bd1cebf
Operate directly on SOL data
4 years ago
Vladimir Olteanu
4f1e6b76e0
Refactor MI_Apoca ( #4730 )
4 years ago
obligaron
22010f12a7
Set quest unique monsters location depending on setlevel
4 years ago
obligaron
184290a977
Support setlevel in multiplayer
4 years ago
obligaron
e151274fdf
Introduce IsValidLevel
4 years ago
obligaron
22a113d3a6
Introduce GetLevelForMultiplayer
4 years ago
obligaron
766fdf74df
Change IOwnLevel from nReqLevel to player
4 years ago
obligaron
6210f57e82
Change DeltaSyncObject and DeltaPutItem from bLevel to Player
4 years ago
obligaron
8637e05650
Remove bLevel from delta_kill_monster_ and delta_monster_hp
4 years ago
obligaron
ceb08d783f
Introduce Player::plrIsOnSetLevel
4 years ago
obligaron
783db07cbf
Replace CMD_DLEVEL_0/_1/... with generic CMD_DLEVEL
4 years ago
obligaron
303735777e
Store delta level information in unordered_map
4 years ago
obligaron
29e4ec4ef1
Move delta structs to msg.cpp
4 years ago
obligaron
316279fdd2
Reduce use of sgLevels
4 years ago
obligaron
d0c14fe92f
Introduce Player::setlevel
4 years ago
obligaron
9ac04314f4
Introduce Player::isOnLevel
4 years ago
obligaron
19749420b5
Introduce Player::isOnActiveLevel
4 years ago
Andrew James
0add7a8af6
Define sizes using Size type in control.cpp/stash.cpp ( #4737 )
...
* Use appropriate types for size constants in control.cpp
* Declare constexpr value for iterating over the cells in a stash grid
* Use appropriate type for UIRectangle dimensions
4 years ago
Gleb Mazovetskiy
b7404af9c7
Fix build with NONET and no exceptions
...
Fixes the build with `-fno-rtti` and `-fno-exceptions`.
Building with these flags reduces the binary size by more than 200 KiB.
4 years ago
ephphatha
e246ac78db
Simplify character test in UiValidPlayerName
4 years ago
ephphatha
771beeb82d
Use string_view for UiValidPlayerName
4 years ago
ephphatha
34b7d85263
Add IsLeadUtf8CodeUnit to complement trail byte detection
4 years ago
ephphatha
3c173df83b
Update comment on IsTrailUtf8CodeUnit
...
Also use char literals instead of int literals.
4 years ago
Gleb Mazovetskiy
563ee3af7c
Optimize `FormatInteger`
4 years ago
Gleb Mazovetskiy
a939b12f97
monstdat: Fix incompatible enum warning
4 years ago
Vladimir Olteanu
2cc9d70fa6
Use decimal separators for gold and XP ( #4722 )
4 years ago
obligaron
0efebc2cc8
Fix PlaceUniqueMonsters off by one monstertype
4 years ago
obligaron
9713441b69
Fix PlaceUniqueMonsters when unique monster type is not active on the level
4 years ago
obligaron
b2714da91e
Fix: Disable lightning in town
4 years ago
Vladimir Olteanu
6f4fe8a142
Fix typo in CanPlaceRandomObject
4 years ago
Vladimir Olteanu
5d3274de45
Consolidate random object placement
4 years ago
Vladimir Olteanu
4d6ff58c22
Reduce reliance on `bool done` for control flow (part 1 of x) ( #4720 )
4 years ago
ephphatha
6a0fc6627e
Use LANGUAGE as a preference list if available
4 years ago
Gleb Mazovetskiy
f22d1d0149
Remove uses of deprecated codecvt
...
codecvt is deprecated in C++17 and we don't really need all of its heavy
machinery for simply converting to UTF-8.
4 years ago
Gleb Mazovetskiy
d500886293
Use env or <clocale> to get the locale
...
The C++ `std::locale("")` constructor performs a static
initialization of all the facets on the first call.
For example, this includes things like currency formatting.
Avoid all of that by using the environment variables with a fallback to
the equivalent C locale call.
4 years ago
Anders Jenbo
60856fb724
Clean up ApplyCryptShadowsPatterns
4 years ago
Anders Jenbo
0d5f07d93c
Clean up chamber generation
...
Share soom selection, remove unreachable cases
4 years ago
Anders Jenbo
fd98aff9f1
Move shared dungeon level code to common function
4 years ago
Anders Jenbo
6fa681e567
Clean up level initialization
4 years ago
Anders Jenbo
6fffbb4676
Clean up selecting what chamber to spawn quests in
4 years ago
obligaron
f0b3d9cb5b
pfile: remove savePrefix global
4 years ago
obligaron
7afe7d2a70
Save Methods in loadsave gets MpqWriter passed
4 years ago
Gleb Mazovetskiy
02d448267a
Render fonts as PCX (-420 KiB RAM)
...
Reduces peak memory consuption in game by ~420 KiB.
This is because the PCX renderer applies the palette on the fly while
rendering, meaning we do not need to duplicate the font for different
palettes.
This approach is also a bit slower than precomposed palettes (still
plenty fast).
4 years ago
Anders Jenbo
d17d7e018d
Use common function for loading .dun tile data
4 years ago
Gleb Mazovetskiy
2386fd12a9
Fix a few warnings
4 years ago
Gleb Mazovetskiy
9d2948c782
Loading screen: Free the background early
...
Frees the background after blitting it once in the loading screen.
This gives the game more RAM for the actual loading.
4 years ago
Gleb Mazovetskiy
4a68c3baef
Remove unused and undefined `snd_stop_snd`
4 years ago
Gleb Mazovetskiy
ede7eab7e8
Fix `-wnarrowing` from `SDL_Rect` construction
4 years ago