Commit Graph

632 Commits

Author SHA1 Message Date
Vincent Hamm
bd6751cb4a CINE: Fix drawing of sprite with mask.
Protects against cases where a non-existing script is referenced.
2012-08-20 01:48:20 +01:00
Torbjörn Andersson
629d55cdfa CINE: Apply some ScummVM formatting conventions 2012-08-14 09:09:08 +02:00
yaz0r
8fff7e29de Merge pull request #266 from yaz0r/master
Fix system menu in OS
2012-08-13 23:59:59 -07:00
Vincent Hamm
92df76fbb3 CINE: Fix system menu sometimes not appearing in OS 2012-08-13 23:58:32 -07:00
Travis Howell
54e6283cfa CINE: Fix compile error caused by excess ; 2012-08-14 16:46:19 +10:00
Vincent Hamm
478be5f07a CINE: Fix regression in savegame system 2012-08-13 23:20:10 -07:00
Vincent Hamm
ca54d69add Cine: Fix swimming sequence by allowing mouse click to be held down 2012-08-13 21:38:24 -07:00
Vincent Hamm
2fd8bae319 CINE: Fix restoring of savegame in cave 2012-08-13 20:12:07 -07:00
Johannes Schickel
90bb7a0f3f CINE: Slight formatting fixes in gfx.cpp.
Powered by astyle.
2012-08-12 19:50:00 +02:00
D G Turner
78b8fa31ca CINE: Fix typo in OS palette restore code.
This fixes most cases of incorrect palette on savegame loading.
Thanks to yaz0r for this fix.
2012-08-11 21:12:35 +01:00
D G Turner
21c057ce75 CINE: Fix lockup in Scene 5 when "operate Girl" underwater.
Traced with gdb to sound.cpp:792 i.e. _fadeOutTimer infinite loop.

This bug was introduced by the addition of the MT-32 output driver for
Future Wars and associated mutex changes.
The _fadeOutTimer increment is done by the timer callback occuring
during the load method call, but this was excluded by the mutex.

Fixed by moving the mutex in the load method.
2012-08-11 20:08:03 +01:00
Vincent Hamm
c6c7b16089 CINE: Slight cleanup. 2012-08-11 00:11:21 +01:00
Vincent Hamm
92b5ee0a48 CINE: Fix masking in Operation Stealth. 2012-08-10 14:38:31 +01:00
D G Turner
85d87e8345 CINE: Mark Operation Stealth as Unstable.
Since the cine engine's support for Operation Stealth is still
incomplete with significant GFX glitches, this should be marked
as "ADGF_UNSTABLE" to warn users and prevent invalid bug reports.
However, it should be noted that the game is completable.
2012-07-16 21:20:01 +01:00
Willem Jan Palenstijn
9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Max Horn
658080deed ALL: Avoid using is* macros from ctype.h
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Johannes Schickel
9916d2e99c CINE: Add some comments to the MT-32 instrument code. 2011-12-19 01:10:48 +01:00
Johannes Schickel
d14e75cdc7 CINE: Make findNote behave like in the original.
This also reverts 42fd697544, which was wrong,
since I misread the assembly. Ooops.
2011-12-11 06:24:33 +01:00
Johannes Schickel
54819a5448 CINE: Fall back to AdLib, in case a user tries to use the MT-32 output with an GM device.
The driver is really specific to the Roland MT-32 right now, since it uses
MT-32 specific sysEx messages to setup instruments etc.
2011-12-11 05:11:28 +01:00
Johannes Schickel
6ba090b45a CINE: Make PC sound code thread safe, since the MIDI output might run the callback in an extra thread. 2011-12-11 05:04:08 +01:00
Johannes Schickel
42fd697544 CINE: Make findNote behave a bit more like the original. 2011-12-11 05:04:04 +01:00
Johannes Schickel
c48af08a0b CINE: Implement MT-32 output driver.
The driver is based on Future Wars. I do not own Operation Stealth, thus I do
not know whether it works fine for it.
2011-12-11 05:03:57 +01:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Johannes Schickel
61795739f8 COMMON: Rename Common::set_to to Common::fill.
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Eugene Sandulenko
95f890c350 CINE: Fix warnings 2011-11-02 23:04:49 +00:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Torbjörn Andersson
e6fbc4fb88 CINE: Remove unused variable 'di'
As far as I can tell, it converted the selection back to Y coordinate
for no apparent reason.
2011-10-09 10:16:04 +02:00
Johannes Schickel
5739e86e0c CINE: Made some static data const. 2011-09-08 19:51:05 +02:00
eriktorbjorn
5dd8f2575b JANITORIAL: Silence a couple of "variable set but not used" warnings. 2011-06-30 23:47:10 +02:00
Filippos Karapetis
12635ee198 CINE: Fixed compilation when DUMP_SCRIPTS is set 2011-06-26 16:00:22 +03:00
Littleboy
b694a78f62 ANALYSIS: Add static casts to is* functions
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
593b929047 DETECTOR: Separate code for handling obsolete gameids from advanced detector
This includes a renaming of ADObsoleteGameID to Engine::ObsoleteGameID,
and AdvancedDetector::findGameID now is Engines::findGameID.

Doxygen comments were added or improved
2011-06-14 18:52:07 +02:00
Max Horn
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn
3c837a39f0 CINE: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:41 +02:00
Max Horn
4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
Max Horn
477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
D G Turner
0d379b3783 CINE: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 03:44:31 +01:00
Thierry Crozat
d2a55b42c9 ENGINES: Further unify engine names 2011-05-22 12:47:35 +01:00
Max Horn
4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
Thierry Crozat
3c59e37035 ENGINES: Unify engine names
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-16 00:11:32 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
dhewg
e5056cab91 CINE: Init volume levels on startup
Add syncSoundSettings() to set the volume for kPlainSoundType and
respect the global mute setting
2011-03-19 15:34:57 +01:00
D G Turner
53426e6ed7 CINE: Add Opcode 0x40 (o1_closePart) to Operation Stealth.
This silences the warnings and a basic playtest has shown no issues.
2011-03-16 22:39:42 +00:00