Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
5 years ago
Juliano Leal Goncalves
8cf972e843
♻️ Move 'HeroClass::ClassCount' to external tracking template
...
This eliminates the problem where the compiler complains we are not handling all enumeration values by moving the "hack" counting member into somewhere else external to the enum.
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Juliano Leal Goncalves
660fbfd4c1
♻️ Use 'plr_class' enum as argument on 'selhero_GenerateName'
...
This improves type-safety by using a stronger, more specific type.
5 years ago
Gleb Mazovetskiy
2f3e0cb18e
SDL1: Backport SDL2 logging
...
1. Backports SDL2 logging.
2. Adds a `--verbose` flag.
3. As an example, adds logging priority and category to a few log calls.
5 years ago
Anders Jenbo
819fd40376
🎨 Consistent enum value style ( #1458 )
5 years ago
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
dc84643fe6
🚚 Move dx.cpp and sound.cpp back in to Source now that the name space is clean
5 years ago
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Gleb Mazovetskiy
7ce1deb514
Migrate game_controller.cpp to SDLUniquePtr
5 years ago
Gleb Mazovetskiy
218aab57f1
Remove the raw pointer ScaleSurfaceToOutput
5 years ago
Gleb Mazovetskiy
d966a1380e
Migrate DiabloUI/art to SDLSurfaceUniquePtr
5 years ago
Gleb Mazovetskiy
bb5cadf19d
Migrate text_draw to SDLSurfaceUniquePtr
5 years ago
Gleb Mazovetskiy
8b7a183f39
Migrate credits.cpp to SDLSurfaceUniquePtr
5 years ago
Gleb Mazovetskiy
b89d200ef9
Add std::unique_ptr specializations for SDL types
5 years ago
Epifanov Ivan
fde936195c
Use custom IME handler on Vita ( #1442 )
5 years ago
Gleb Mazovetskiy
eeccf6b5d6
Fix MSVC build with -DNONET=1
...
Not sure why this worked on Linux without this stub
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
5 years ago
Gleb Mazovetskiy
4e92c86682
Fix audio distortion on Windows (default to winmm)
5 years ago
Geoffroy Warin
b54df1af38
add an ini option to configure gamepad deadzone
5 years ago
Gleb Mazovetskiy
5059ce4085
Fix narrowing conversion warnings on SDL1
5 years ago
Xadhoom
867dd96a73
Add ZeroTier support
5 years ago
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
5 years ago
Anders Jenbo
47feeda0ce
🐛 Only initialize the subsystems that we use
...
Fixes #1391
For now this stops the initalization of sensor subsystem, but in the
future SDL may add more that we do not care about.
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Gleb Mazovetskiy
87dcbcb6d7
Save 1.5 MiB RAM in-game by freeing more DiabloUI art
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Anders Jenbo
bc3dc545da
🔥 Remove unused parts of game creation logic
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
Gleb Mazovetskiy
33b4c9581d
ttf_render_wrapped: std functions instead of SDL
...
Some SDL ports, such as the 3DS one and the PSP one, are missing these
SDL functions.
5 years ago
Gleb Mazovetskiy
21a4a671e4
Cleanup DiabloAllocPtr
...
1. Removes a lock around allocation. `malloc` is required to be thread-safe in C11.
2. Defines it as a macro so that:
1. We provide the correct location for the OOM error.
2. We get better attribution from memory profilers.
5 years ago
Gleb Mazovetskiy
a6019f4e55
DiabloUI: Render to DiabloUiSurface()
...
Use that instead of using `GetOutputSurface()` directly.
For the rg99 port, we'll want to render this to the `pal_surface`
instead of output surface directly.
Might also be useful for 3ds, perhaps to render to the bottom screen.
5 years ago
staphen
77767eab37
Fixed order of evaluation in SBmpLoadImage size allocation.
5 years ago
Anders Jenbo
b53c624f59
💄 Change animal type color to yellow
5 years ago
Anders Jenbo
c8f2f09e03
♻️ Improve HP guard
5 years ago
Anders Jenbo
ccad226092
🐛 Fix health bar poping when mosnter healt is 0
5 years ago
Anders Jenbo
ae82fb0b23
🐛 Make health bar take panels in to consideration
...
Fixes #1350
5 years ago
Anders Jenbo
3a8b4cef9f
🐛 Update hero list after canceling out of create game dialog
5 years ago
Anders Jenbo
37fbe80930
🐛 Correct avalible heros in shaware
5 years ago
danie1kr
8555b1352f
Fix broken KeySupport for Gameshell (and others) ( #1343 )
5 years ago
Juliano Leal Goncalves
1bb12b1bfb
♻️ Refactor 'HasRoomForGold' function for readability/robustness
5 years ago
Juliano Leal Goncalves
18b9b51a5e
🐛 Check correct inventory gold piles when auto-picking up gold
...
Off by one error in the logic when indexing into 'InvList'
5 years ago
Gleb Mazovetskiy
6e846ee89d
Also disallow Barbarian in shareware
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
5 years ago
Gleb Mazovetskiy
0f3951744f
diablo.ini: Rename "Fast Walk" to "Run in Town" ( #1326 )
5 years ago