qndel
4f2a19b6e9
[hellfire] MAI_Warlord bin exact
7 years ago
qndel
5a9aee7b92
PreSpawnSkeleton cleanup
7 years ago
qndel
c5859e1393
[hellfire] MonsterTrapHit bin exact ( #1751 )
7 years ago
qndel
4f2fe6174d
GetDamageAmt cleanup
7 years ago
Mathieu Maret
3ec16ee3c5
Correct memory leak
...
Correct memory leak after creating a network party
7 years ago
qndel
c8ad43971b
MI_Element cleanup
7 years ago
Gleb Mazovetskiy
37936c6d15
DiabloUI: Refactor UI_Item to tagged unions
...
Makes the code easier to understand.
Also makes building lists easier.
Also fixes focus indicator in SELLOAD_DIALOG (this type of bug is
impossible with the new structs).
7 years ago
Gleb Mazovetskiy
5f21aba186
progress.cpp: fix SDL1 narrow conv warn
7 years ago
Gleb Mazovetskiy
e2a1c90979
storm.cpp: simplify getIniPath
7 years ago
Gleb Mazovetskiy
dc937c8b96
diabloui.cpp: Fix value not handled warning
7 years ago
Gleb Mazovetskiy
7f61128d32
Fix more compilation warnings
...
```
SourceX/storm/storm.cpp:27:10: note: ‘snprintf’ output between 11 and 270 bytes into a destination of size 260
snprintf(file_path, DVL_MAX_PATH, "%sdiablo.ini", path);
```
SDL1 warnings:
```
devilutionX/SourceX/dx.cpp:199:24: warning: narrowing conversion of ‘(int)dwX’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect dst_rect = { (int)dwX, (int)dwY, w, h };
SourceS/sdl2_to_1_2_backports.h:616:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if (final_dst.w < 0)
SourceS/sdl2_to_1_2_backports.h:777:24: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘long unsigned int’ [-Wsign-compare]
if ((rc > 0) && (rc < sizeof(path))) {
~~~^~~~~~~~~~~~~~
SourceX/storm/storm.cpp:479:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
if (out_len <= item->len) {
SourceX/storm/storm.cpp:716:60: warning: narrowing conversion of ‘((640 - scaledW) / 2)’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect pal_surface_offset = { (SCREEN_WIDTH - scaledW) / 2, (SCREEN_HEIGHT - scaledH) / 2, scaledW, scaledH };
DiabloUI/credits.cpp:525:30: warning: narrowing conversion of ‘- y’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect src_rect = { 0, -y, text_surface->w, 251 };
```
7 years ago
Gleb Mazovetskiy
e3cf8af94d
dvlnet: More C++11 compatibility
...
Fixes the following warnings:
SourceX/dvlnet/tcp_client.cpp:104:38: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
SourceX/dvlnet/tcp_server.cpp:142:15: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
7 years ago
qndel
df145cca47
[hellfire] MI_Blodboil bin exact
7 years ago
qndel
2ba8affc8f
[hellfire] AddBlodboil bin exact
7 years ago
Anders Jenbo
bd2c08183c
Fall back to relative path when unable to use SDL
7 years ago
Gleb Mazovetskiy
b905fb739f
CMake: Enable LTO for the release build
7 years ago
Anders Jenbo
e97061f126
Correct bad definition of nDataSize
7 years ago
Anders Jenbo
ed746a6d2d
Fix Cl2DecodeFrm3
7 years ago
Gleb Mazovetskiy
40112bf895
Set -std=c++11 the CMake way ( #293 )
7 years ago
Anders Jenbo
1a2f2b5f52
Implement CelGetFrameClipped from the Mac 9 port
7 years ago
Anders Jenbo
64824cab2b
Implement CelGetFrameStart
7 years ago
Anders Jenbo
fae2be813a
Merge branch 'master' of github.com:diasurgical/devilution
7 years ago
Mathieu Maret
0ac4c1e419
tcp_client: close connections when leaving
...
So you can join another game latter
fix #251
7 years ago
Robin Eklind
b77cd53e33
Merge pull request #1744 from AJenbo/mac9
...
Implement CelGetFrameSize
7 years ago
Anders Jenbo
6dd0893bce
Implement CelGetFrameSize
7 years ago
Robin Eklind
5a2d1e2c83
Merge pull request #1743 from AJenbo/mac9
...
Implement CelGetFrame (CEL decoder helper)
7 years ago
Anders Jenbo
ce6fc51b50
Implement CelGetFrame (CEL decoder helper)
...
This implements the first of the inlined CEL decoder helper functions
that are still visable in the Mac port code.
Functions are still bin exact
7 years ago
qndel
ea5c8bd23a
SpecialThemeFit cleanup
7 years ago
qndel
a5c3642caf
[hellfire] init_create_window bin exact
7 years ago
Gleb Mazovetskiy
4f6c5791a7
Fix some compiler warnings
7 years ago
Anders Jenbo
890f414cb9
Small clean up of unused code
7 years ago
Mathieu Maret
a7d0e5e858
Fill GAMEINFO for name and password
...
Those information could be accessed by pressing tab key in multiplayer
Fix #260
7 years ago
qndel
cd1e4d09e5
[hellfire] InitAutomap bin exact
7 years ago
qndel
25cb639e17
[hellfire] CastSpell bin exact
7 years ago
qndel
dcd08235f3
[hellfire] InitMonsterGFX bin exact
7 years ago
qndel
1516ad57ac
GetManaAmount cleanup ( #1737 )
7 years ago
Anders Jenbo
3f037ce76c
Merge branch 'master' of github.com:diasurgical/devilution into hellfire
7 years ago
qndel
449b9fd2dc
CastSpell cleanup
7 years ago
qndel
f7c90653bd
[hellfire] DoHealOther bin exact
7 years ago
Anders Jenbo
743ebc2048
Always load MPQ files in read-only mode
7 years ago
qndel
d626908a53
[hellfire] missiles_4359A0 bin exact ( #1731 )
7 years ago
Anders Jenbo
e88e574c5f
Drop unimplemented code
7 years ago
Anders Jenbo
06bcd3c3f9
Handle file paths in a clean way
...
Belated birthday present for @mewmew
Functions for gettings paths have sensible names
It's using snprintf for safe? string concat
Paths don't use \ as path reporator, or magic marker
Drop code for copying pre 1.09 save games from the windows folder
7 years ago
Anders Jenbo
606d5536f2
Set version and project name via CMake
7 years ago
Anders Jenbo
18532e7c9b
Format SourceX and SourceS
...
Fixes #262
7 years ago
qndel
29822058c5
[hellfire] DrawAutomapGame bin exact
7 years ago
qndel
0704393bc3
StoreAutoPlace cleanup
7 years ago
qndel
d0421621c4
InitMonsterGFX cleanup
7 years ago
qndel
5253e28584
InitAutomap cleanup
7 years ago
Gleb Mazovetskiy
94f62177f1
Make SourceX/dvlnet C++11 compatible
...
std::make_unique is only available in C++17 and above
7 years ago