21293 Commits

Author SHA1 Message Date
strangerke
4e75a95f86 TSAGE: Fix two GCC warnings (which were bugs). Thanks LordHoto for reporting those. 2011-04-13 21:59:54 +02:00
strangerke
66b43f2312 TSAGE: "Cosmetic" cleanups 2011-04-13 21:27:46 +02:00
Johannes Schickel
fb9a8620db TSAGE: Fix build as dynamic plugin. 2011-04-13 19:18:12 +02:00
Alyssa Milburn
848b0d1b0b MOHAWK: Stupid padding fix. 2011-04-13 19:12:25 +02:00
Johannes Schickel
5c87136b5f TSAGE: Fix compilation on NDS.
It is not safe to assume one can construct a va_list by using NULL. Instead I
created a temporary (uninitialized!) dummy, which is passed in the call to the
Action::attached implementation. I added a TODO to resolve this temporary hack.
2011-04-13 19:13:12 +02:00
Willem Jan Palenstijn
fc59a52e7a SCI: Remove left-over fixme comment
It should have been removed in b40b87fdb5b4ee869cce55d852af409896b20c98
2011-04-13 18:57:18 +02:00
Johannes Schickel
f864fef8e9 TSAGE: Fix compilation on Mac OS X PPC.
Mac OS X PPC's standard C(++) library does not feature any sqrtf function,
since the parameter is double anyway I changed it to use sqrt for now.

We might want to consider adding some global macros for that on such
platforms. Another instance where the same issues caused problems in the past
is the MT-32 emulator. See audio/softsynth/mt32/synth.cpp lines 30 to 43 for
reference.
2011-04-13 18:54:21 +02:00
Johannes Schickel
6db40e0c6c TSAGE: Cleanup custom List usage.
This makes the code use Common::List for all cases where synchronization can
not be done with tSage::List::synchronise. Furthermore I renamed the custom
List class to SynchronisedList to stress its purpose.

I also removed clear2, contains and forEach and replaced them with algorithm
usage from Common:: or in the case of "contains" replaced them with a simple
inline function which uses Common::find.
2011-04-13 18:26:12 +02:00
Johannes Schickel
0234c9ff95 TSAGE: Fix compilation on Linux/amd64 with g++ 4.5.2. 2011-04-13 16:10:38 +02:00
Matthew Hoops
deb46ab38b AUDIO: Split the Intel DVI ADPCM into its own class
IMA is really just the definition on how to decode a sample from a nibble, DVI is just a way for those nibbles to be stored in the stream.
2011-04-13 09:45:13 -04:00
Willem Jan Palenstijn
3be6ff23d7 TSAGE: Fix warning 2011-04-13 14:07:11 +02:00
Paul Gilbert
48dbcbe8a1 TSAGE: Fixed warnings identified by Buildbot 2011-04-13 22:02:40 +10:00
Paul Gilbert
4852a38f36 Merge branch 'master' of github.com:scummvm/scummvm 2011-04-13 21:30:26 +10:00
Paul Gilbert
0600f0c018 TSAGE: Change palette code from 4-byte to 3-byte palettes 2011-04-13 21:25:57 +10:00
Paul Gilbert
e6090415b6 Merge remote branch 'remotes/dreammaster/tsage' 2011-04-13 21:08:05 +10:00
Max Horn
169512852e TOON: Use shared ADPCM data tables 2011-04-13 12:48:58 +02:00
Max Horn
1759209b3b SCUMM: Use shared ADPCM data tables 2011-04-13 12:48:58 +02:00
Max Horn
7607e351cc TINSEL: Move custom ADPCM decoders to tinsel engine 2011-04-13 12:48:57 +02:00
Max Horn
9c2ff87db7 SCUMM: Fix bug #3187622 (COMI: incorrect decoding of audio codec 13/15) 2011-04-13 11:49:25 +02:00
Max Horn
b52b6b8d2b SCUMM: Resolve some code duplication 2011-04-13 11:49:25 +02:00
Max Horn
29962bfc73 SCUMM: Move ADPCM decoder into separate function 2011-04-13 11:49:24 +02:00
Max Horn
79f514a397 TOON: Make ADPCM tables const 2011-04-13 11:49:24 +02:00
Alyssa Milburn
e000ed22d5 MOHAWK: LB's 'self' is case-insensitive 2011-04-13 10:11:20 +02:00
md5
22046d2480 SCI: Added handling for another version of mt32.drv (bug #3285556)
This is used in another version of KQ4 early (0.000.274)
2011-04-13 10:29:24 +03:00
strangerke
a2d1fdd365 TSAGE: Fix a crash using the new palette effect. It still doesn't show much... 2011-04-13 07:42:58 +02:00
strangerke
c1e58c1415 TSAGE: Implement most of the scene 9900. New palette animation is currently broken, to be fixed 2011-04-12 23:39:10 +02: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
Max Horn
f5ff6e9e18 TINSEL: cleanup 2011-04-12 16:06:39 +02:00
Paul Gilbert
d61ad01530 TSAGE: Reworked the 'probe approaching rocks' cut-scene to work correctly
The problem is the original game presumed that rendering a single frame would take at least 10 ticks (at 60Hz). Since the ScummVM renders it faster than then, the cutscene wasn't working. A new 'ProbeMover' class has been created to ensure the probe shrinking keeps correct pace with the probe's movement.
2011-04-12 20:16:34 +10:00
D G Turner
214f93e6aa MOHAWK: Add Default Values to LB NotifyEvent Constructor.
This silences a number of warnings about possible uninitialized
parameter use.
2011-04-11 23:21:46 +01:00
Matthew Hoops
3769f30529 MOHAWK: Add more versions of LB demos
From bug #3275626
2011-04-11 16:52:01 -04:00
Johannes Schickel
d9441aeb80 KYRA: Add some assertion to prevent out of bounds access. 2011-04-11 00:36:03 +02:00
Johannes Schickel
073da68efa KYRA: Constify static data table in LoL code. 2011-04-11 00:35:28 +02:00
Johannes Schickel
93f591580a KYRA: Get rid of non-const static variable in Kyra2 code. 2011-04-11 00:34:16 +02:00
Johannes Schickel
8fe9f8e73a KYRA: Cleanup. 2011-04-11 00:31:24 +02:00
Johannes Schickel
ee4699a495 KYRA: Get rid of non-const static variables in HoF. 2011-04-11 00:21:18 +02:00
Johannes Schickel
e8be5ba95b TINSEL: Make the cdFlags array in drives.cpp static again. 2011-04-10 19:22:06 +02:00
md5
cd085b1ae8 TINSEL: Removed some unused global static variables 2011-04-10 17:27:48 +03:00
md5
c89f2276d1 TINSEL: Merged NewName() inside DoSave() in order to remove a static var 2011-04-10 14:27:50 +03:00
md5
d1c4b56223 TINSEL: Cleanup - removed obsolete defines 2011-04-10 14:27:49 +03:00
md5
b31f39e6c6 TINSEL: Changed cdFlags to be non-static and constant 2011-04-10 14:27:48 +03:00
md5
69ec4fbf1b TINSEL: Removed the dummy ForceEntireRedraw() function 2011-04-10 14:27:47 +03:00
md5
3fde0306a4 TINSEL: Removed the useless LookAtBuffers() function 2011-04-10 14:27:46 +03:00
md5
d2d6c9e2ba MOHAWK: Silenced an MSVC waning about an uninitialized var (false positive) 2011-04-10 14:27:45 +03:00
Paul Gilbert
1a1e760800 TSAGE: Fixed bug in Scene #6100 with sunflowers briefly appearing too large 2011-04-10 20:13:25 +10:00
Paul Gilbert
0a1a8810ae TSAGE: Lots more bugfixes for Scene #6100 2011-04-10 16:50:10 +10:00
Paul Gilbert
718660c7f1 TSAGE: Fix memory leak in the GfxSurface class 2011-04-10 09:29:42 +10:00
Paul Gilbert
9842dd9268 TSAGE: Simplified the custom surface code in GfxSurface 2011-04-10 09:20:00 +10:00
Max Horn
6cf1de87ac DEVTOOLS: Renamed 'tools' directory to 'devtools' 2011-04-09 23:47:35 +02:00
Alyssa Milburn
ae49865e9e MOHAWK: Move per-page data into LBPage. 2011-04-09 21:01:27 +02:00