Commit Graph

1290 Commits

Author SHA1 Message Date
Henrik "Henke37" Andersson
61e7069169 HDB: The engine does not use mid, mark the games as such. 2019-09-29 19:34:16 +03:00
jepael
f702537820 HDB: Fix Shadowed Variable Compiler Warning 2019-09-26 20:01:24 +01:00
Strangerke
3996676c45 HDB: Fix issue in stylusDown 2019-09-22 14:01:51 +02:00
sluicebox
a76c476b19 HDB: Use fabs instead of abs for doubles
Fixes VS2015 build
2019-09-21 16:27:58 -07:00
D G Turner
d7972603e7 HDB: Fix Game Breaking Bug in Right Mouse Button Handling
The right mouse button (which is the "Use" button for throwing gems etc.)
function sets the Button B flag in the _buttons flag field, but never
cleared it. This resulted in blocking of setting of movement waypoints
with the left button and thus locked up the player character.

You could avoid this by using the "Return" key which is also mapped to
use, but this would only be possible on desktop ports or with a virtual
keyboard.

This commit fixes the mouse handling code to clear the flag and thus
avoids future bug reports.
2019-09-22 00:11:51 +01:00
Eugene Sandulenko
9d028ac4ac HDB: Guard for corrupted sound data 2019-09-20 21:55:08 +02:00
sluicebox
52166aa3b1 HDB: Fix missing semicolon 2019-09-19 02:05:25 -07:00
Strangerke
0344e0adce HDB: Simplify some code 2019-09-19 08:10:49 +02:00
Strangerke
cd2f87942f HDB: Fix another regression in inventory 2019-09-19 08:04:34 +02:00
Strangerke
cb61f2e7c6 HDB: Fix regression introduced in 35ff6ad 2019-09-19 00:32:08 +02:00
Strangerke
10a74b2e6c HDB: Turn a couple of arrays into static const 2019-09-16 23:11:40 +02:00
Strangerke
35ff6adfd5 HDB: Fix some more uninitialized variables 2019-09-16 23:06:17 +02:00
D G Turner
8a65f44311 HDB: Remove Another Fixed Size String Buffer
This reduces the scope for buffer overflow issues.
2019-09-15 00:03:11 +01:00
D G Turner
8555657207 HDB: Improve String Code Usage in HDB Engine Code 2019-09-14 03:03:17 +01:00
D G Turner
076514da3f HDB: Improve String Buffer Usage in AI Inventory Code 2019-09-14 02:47:55 +01:00
D G Turner
8fe7f80d0c HDB: Replace Unecessary Buffer in AI Inventory Code 2019-09-14 02:38:53 +01:00
D G Turner
64e2a21a17 HDB: Avoid String Buffer Overruns from Save Load Code 2019-09-14 02:27:06 +01:00
D G Turner
817bcc4c24 HDB: Remove Fixed String Buffer Usage in Window Code 2019-09-14 02:12:13 +01:00
D G Turner
7064698b60 HDB: Removed Fixed String Buffer from AI Player Code
This is replaced by simpler Common::String equivalent.
2019-09-14 02:01:57 +01:00
D G Turner
0d498a2036 HDB: Remove More Fixed Sized String Buffers in Menu Code 2019-09-14 01:43:09 +01:00
D G Turner
04d522121b HDB: Remove Fixed Sized String Buffers in Menu Code
These are replaced by Common::String usage.
2019-09-14 01:22:25 +01:00
D G Turner
117733ad0a HDB: Fix More GCC Compiler Warnings 2019-09-14 00:07:47 +01:00
D G Turner
c0d6a8fc7a HDB: Further Fixes for GCC Compiler Warnings 2019-09-13 23:06:32 +01:00
D G Turner
c01598484e HDB: Fix Some GCC Compiler Warnings
These were of the type memset of a complex structure.
2019-09-13 22:41:41 +01:00
D G Turner
b940fb7588 HDB: Fix Major Memory Leak in File Manager Class 2019-09-13 21:50:55 +01:00
D G Turner
df940b17af HDB: Close Memory Leaks in Sound Class 2019-09-13 21:20:19 +01:00
D G Turner
6f265805ec HDB: Ensure Demos are Indicated in ScummVM GUI Launcher List 2019-09-13 20:33:55 +01:00
D G Turner
ec677b3fe9 HDB: Fix Crash on Invalid Sound String Pointers
This was causing a crash with buffer overflow on Windows builds, but
diagnosing with Valgrind showed invalid strings being accessed in the
sound code. Some analysis showed that these were mainly the reference
to c_str() buffers from a local heap Common::String which was out of
scope and thus destructed, giving an invalid pointer.

The fix here also simplifies the code as well as avoiding this issue.
2019-09-13 20:14:22 +01:00
sluicebox
76ddbe7bd9 HDB: Fix empty string test 2019-09-10 16:20:19 -07:00
Strangerke
299c28e93e HDB: Remove useless check on array vs null 2019-09-09 23:22:22 +02:00
Strangerke
5e0fa2a71c HDB: Fix more uninitialized variables in Gfx and Window 2019-09-09 23:16:26 +02:00
Strangerke
0e04da2cc8 HDB: Fix more uninitialized variables in ai-init 2019-09-09 22:47:27 +02:00
Strangerke
9de42a143a HDB: Fix a pointer to local variable outside of scope 2019-09-09 22:30:17 +02:00
Strangerke
590285a890 HDB: Reduce the scope of some more variables 2019-09-08 22:15:50 +02:00
Strangerke
feafd2a956 HDB: Remove unused static in setButtons 2019-09-08 22:15:15 +02:00
Bastien Bouclet
997e15878a HDB: Fix out of bounds read in HDBGame::setInMapName 2019-09-08 19:55:23 +02:00
Strangerke
b1db45b718 HDB: Remove useless returns 2019-09-07 22:49:07 +02:00
Strangerke
d99ba0a126 HDB: Fix some array compared to nullptr, reduce some variable scopes 2019-09-07 19:47:36 +02:00
Strangerke
49fe42cc33 HDB: Remove useless existence checks on entityName 2019-09-07 01:25:32 +02:00
Strangerke
db58be617b HDB: Replace some unsafe strcpy by strncpy 2019-09-07 00:40:01 +02:00
Strangerke
220ef998bb HDB: Fix song 2 fading volume 2019-09-07 00:19:24 +02:00
Strangerke
82c47d75cd HDB: Fix the check for no free sound handle 2019-09-06 22:28:37 +02:00
Strangerke
555cd7d33e HDB: Fix potential out of bound 2019-09-06 22:25:33 +02:00
Strangerke
cf001b1116 HDB: Turn _voicesOn into a boolean 2019-09-06 22:14:12 +02:00
Strangerke
44de7e8d5e HDB: Fix uninitialized variables in gfx 2019-09-06 22:08:12 +02:00
Strangerke
bfb1d6d059 HDB: Remove unused variables in menu 2019-09-06 21:51:55 +02:00
Strangerke
caa870bc25 HDB: Fix uninitialized variables in ai_init and menu 2019-09-06 21:46:21 +02:00
Strangerke
1c8a7800da HDB: More missing initializations 2019-09-06 08:16:04 +02:00
Strangerke
5b01ca8694 HDB: Reduce the scope of some variables 2019-09-06 08:16:04 +02:00
Strangerke
d1b9e1db7a HDB: Initialize some more uninitialized variables. 2019-09-06 08:16:04 +02:00