Anders Jenbo
1a43a19007
Remove duplicate defines
6 years ago
Tyler
d7ca28ff8e
Added single-player difficulty menu.
6 years ago
Anders Jenbo
6a6a12da38
Enable navigation wrapping in difficulty selector
...
Fixes #661
6 years ago
Anders Jenbo
86cd54a7ca
Fix compiler warning
6 years ago
Anders Jenbo
fa473e9e48
Fix memory leak in credits.cpp
...
Thanks to @Lundar
6 years ago
Anders Jenbo
da10151dad
Settle on DevilutionX behaviour in menu
6 years ago
Anders Jenbo
d749e5e6f2
Gard against overflows in UI
6 years ago
BDC
62de5f1600
Refactor DiabloUI to dynamic C++03 compatible code
...
This will help with porting the game to the original Xbox, and also make
it easier to implement dynamic resolutions and translations.
6 years ago
Juliano Leal Goncalves
7f7ab8c3dd
Mark executable as DPI aware (per monitor)
6 years ago
Juliano Leal Goncalves
8d896d54f7
Softcode VSYNC setting. Enabled by default. ( #783 )
6 years ago
Juliano Leal Goncalves
027e63266e
Add integer scaling support. Disabled by default.
6 years ago
qndel
f66339a9ac
clean unused variables
6 years ago
Marcin Konicki
e4cbde0236
Prevent double free of sound chunk in storm ( #744 )
6 years ago
ahwayakchih
63da55f225
Fix description text for "join game" option
6 years ago
Marcin Konicki
2a5d3b6c52
Use asio to resolve host name (or IP)
...
Fixes #735
6 years ago
Marcin Konicki
515ac145c5
Implement `--save-dir` CLI option
...
* Lazy load ini, this also fixes launching the game on Android
6 years ago
Anders Jenbo
0fddb655e3
Clean up var names
6 years ago
Anders Jenbo
5a7d86b46e
Make ScrollBarArrowFrame C++03 compatible
6 years ago
Anders Jenbo
c32f33f19f
Use safe ranges instead of decltype() for C++03 compatability
...
SDL2 uses int, but SDL1.2 uses Uint16 and Sint16.
6 years ago
Anders Jenbo
1c824a253f
Make controller TextAlignment C++03 compatible
6 years ago
Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Marek Majkowski
f8ac2456e5
Bugfix: allow players of level 20 to enter nightmare game
...
Right now we update heroLevel only on "CreateGame" code. This
means you can't enter nightmare/hell game at all - unless you
do createGame first. Let's set the heroLevel global variable in both
create and join game cases.
6 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
7a90b9102a
When needed, clear buffer before rendering menu
6 years ago
Anders Jenbo
ca82f81582
Move menu elements to the center of the screen
...
Previously the rendering was just shifted which gave the mouse an odd
position and made it impossible to place new elements in the left side.
6 years ago
Anders Jenbo
43586c4b0d
Correct inclusion of Radon.hpp
6 years ago
Anders Jenbo
0da3461d35
Use explicit types instead of auto
6 years ago
Anders Jenbo
014308ef01
Explicit casting
6 years ago
Anders Jenbo
a3505ab904
Remove the std namespace from uint32_t
...
Again to help older compileres that aren't C++11 aware.
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
Kai Meyer
791aa60cab
Adding top-level CPACK option ( #700 )
...
* Adding top-level CPACK option
* Setting CMAKE_BUILD_TYPE should always be Cache variables
This initializes CMAKE_CXX_FLAGS_RELEASE during project() correctly. With out
this, changes to CMakeLists.txt may result in a complete rebuild because
CMAKE_BUILD_TYPE wasn't in the cache before, and wasn't respected by project(),
but now it is.
https://cmake.org/pipermail/cmake/2008-September/023808.html
* Always build deb and rpm packages where possible
* Searching for .ttf instead of hard-coding it's full path
6 years ago
Gleb Mazovetskiy
6e449b9411
Allow re-mapping keyboard keys
...
Adds a `REMAP_KEYBOARD_KEYS` CMake option.
This remapping applies wherever Game or Menu controls apply.
Uses it to map the Power button to the menu on RG350.
6 years ago
BDC
74938fdacd
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
qndel
fea95b8cf7
fix wrong enum
6 years ago
Manuel Alfayate Corchete
03662be548
Remove atexit() calls and implement a diablo_deinit() function instea… ( #694 )
...
* Remove atexit() calls and implement a diablo_deinit() function instead that cleans up every subsystem if it has been init before.
6 years ago
Gleb Mazovetskiy
d065202ff2
Reformat the .clang-format files
...
These files are YAML, changes to a more idiomatic YAML syntax
6 years ago
Yuri Pourre
f1a000cb7b
Bugfix: allows resize when fullscreen is toggled
6 years ago
Gleb Mazovetskiy
2c5cc1365c
Map Start + L1/R1 to char/inventory ( #655 )
...
It's common to access char and inventory and this is easier to press than Start + ←/→ on devices that have shoulder buttons
6 years ago
Anders Jenbo
6d9089ec87
Fix compiler warning
6 years ago
Gleb Mazovetskiy
68a0c3a786
Use LF for Markdown files instead of CRLF
...
Ensures the contents can be easily copy-pasted into the terminal from
most editors on all systems.
Otherwise, on Linux, you get 2 newlines for each newline in the source
when copying from VS Code.
6 years ago
Anders Jenbo
82f72713ed
Load current heros level from save game when on difficulty screen
...
Fixes #566
The hero is unloaded before entering this screen from a game, hacking
the game to track the hero level would not work with single player
(planned to also have a select screen) so the only proper solution is to
load the info from the save game. Using gszHero allows us to stay synced
with the engine.
6 years ago
Anders Jenbo
a31a730cf3
Default to 60hz if the driver doesn't return a usable value
6 years ago
Robin Eklind
21e2d2f9de
Resolve CreatePalette name conflict
...
Fixes #641 .
6 years ago
Anders Jenbo
e6f1faea0e
Revert "Correctly detect player level on difficulty selection screen ( #626 )"
...
This reverts commit e6b6501079 .
6 years ago
SeanHenderson
e6b6501079
Correctly detect player level on difficulty selection screen ( #626 )
6 years ago
Gleb Mazovetskiy
12d0338862
dvlnet: Better error on packet type mismatch
6 years ago
Gleb Mazovetskiy
a2ab6e1e6f
storm_net: Prevent crashing during crash handling
...
An error when creating/joining a game was masked by null pointer
dereference
6 years ago
Anders Jenbo
bd6eebedb1
Drop storm_dx.cpp
6 years ago
Gleb Mazovetskiy
d1f41e4676
Controls: B button closes currently active panel
...
This was requested several times and I myself keep trying to use B to
close panels.
6 years ago
Gleb Mazovetskiy
1eefe841b6
mainmenu: Focus on the exit item before exiting
...
This affects both the B and the Esc key
Fixes #603
6 years ago