221 Commits

Author SHA1 Message Date
Paul Gilbert
e9a1035f52 TSAGE: Disable GMM Save/Load buttons when saving/loading not allowed 2011-04-17 08:38:45 +10:00
strangerke
8fe65b52cf TSAGE: Add workaround for scene 40 (glitch in animation of dying Kzin falling) 2011-04-17 00:37:35 +02:00
strangerke
94e956e265 TSAGE: Rename some objects in scene 60 and fix the master button behavior.
This fix the blocking problem in scene 60.
2011-04-16 10:57:46 +02:00
strangerke
ab2626f201 TSAGE: Fix several problems in scene 40, including the blocking one (killing the assassin) 2011-04-15 23:04:29 +02:00
strangerke
9ca6562dc6 TSAGE: Cleanup. For coding consistency, remove default parameters when calling startSound() in scene groups 8 and 10 2011-04-15 20:36:54 +02:00
strangerke
82483cb5d1 TSAGE: Fix several problems in scene 20. That fixes the intro and probably the evasion.
Also add some comments in scene postInit in order to clarify the different actions available
2011-04-15 14:56:22 +02:00
Paul Gilbert
54e6941ec4 TSAGE: Changed palette code back to using a byte array 2011-04-15 21:28:53 +10:00
strangerke
dd6ab8d306 TSAGE: Scene40: The hero may now use his stunner on the assassin. Scene still broken.
Also move some display() to display2() for consistency with the rest of the scenes in group1
2011-04-15 11:01:24 +02:00
Max Horn
2e095e25f2 ALL: centre -> center 2011-04-14 14:34:28 +02:00
Max Horn
84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
Paul Gilbert
8a0495a5f3 TSAGE: Added replacement hierarchy for palette modifier classes that better matches the original 2011-04-14 21:39:53 +10:00
Joost Peters
c679aa72c3 TSAGE: Big Endian fix 2011-04-14 13:04:29 +02:00
Johannes Schickel
41706cb4d9 TSAGE: Silence uninitialized variable usage warning.
Instead of passing an uninitialized dummy va_list to Action::attached we just
pass the va parameter from SequenceManager::attached to it now, since that
parameter is not used in Action::attached, it is safe to do that.
2011-04-13 23:33:22 +02:00
strangerke
c8b418036f TSAGE: Replace the recently added error() by a warning(), allowing to play the CD version 2011-04-13 22:51:53 +02:00
strangerke
c2d66be88d TSAGE: Suppress some dead code, rename a variable (thanks fuzzie for pointing that) 2011-04-13 22:40:58 +02:00
eriktorbjorn
cc82bacc77 TSAGE: Always initialise the event in getEvent()
This fixes Valgrind warnings when getEvent() is called when there are
no pending events at all.
2011-04-13 22:33:41 +02:00
strangerke
f9e9ecd454 TSAGE: Move two functions from .h to .cpp (thanks fuzzie for reporting that) 2011-04-13 22:21:58 +02:00
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
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
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
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
0600f0c018 TSAGE: Change palette code from 4-byte to 3-byte palettes 2011-04-13 21:25:57 +10: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
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
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
Paul Gilbert
2ed8a255e5 TSAGE: Fixing uninitialised read errors identified by Valgrind 2011-04-09 23:14:47 +10:00
Paul Gilbert
81a5fcb5d1 TSAGE: Clarifying field names in Scene #6100 2011-04-09 21:28:01 +10:00
Paul Gilbert
747295e9b4 TSAGE: Fixing memory leaks 2011-04-09 21:27:25 +10:00
Paul Gilbert
f5d22217d6 Merge remote branch 'remotes/Strangerke/master' into tsage 2011-04-09 19:12:54 +10:00
Paul Gilbert
ee32440cde TSAGE: Fix to disable palette rotations when the scene changes 2011-04-09 19:12:03 +10:00
strangerke
48542fb364 TSAGE: Cleanup: rename quickInit() methods into setup() for naming consistency 2011-04-09 10:06:38 +02:00
strangerke
fc57b0433f TSAGE: move SceneObject3 and 4 to scenes8 and 10, rename them their unknown fields, and fix a glitch in scene9150 2011-04-09 09:47:08 +02:00
Paul Gilbert
b912b3662a TSAGE: Slight re-ordering of method calls in SceneHandler::dispatch
This fixes a problem in the title screen where the game title briefly appeared at full size.
2011-04-09 15:12:17 +10:00
Paul Gilbert
a79ba2b4f4 TSAGE: Corrections to palette rotation 2011-04-09 14:45:13 +10:00
Paul Gilbert
d10453d162 TSAGE: Some bugfixes to calculating object distances in Scene #6100 2011-04-09 14:17:54 +10:00
Paul Gilbert
4f9bfa049c TSAGE: Clarified ObjectMover _field6E as _regionIndex 2011-04-09 10:43:42 +10:00
Paul Gilbert
dbacaa90a4 TSAGE: Compilation fixes for GCC 2011-04-09 10:37:32 +10:00
strangerke
9a1fad3e6b TSAGE: move SceneHotspot_2 to scenes8, rename it to NamedHotspotMult, rename unknown fields 2011-04-09 00:38:57 +02:00
strangerke
b4870a5b29 Merge branch 'tsage' of http://github.com/dreammaster/scummvm 2011-04-08 22:10:32 +02:00
strangerke
2aba8a81bd TSAGE: move NamedHotspot back into core. Replace HotspotBase4300 by NamedHotspot and suppress it. 2011-04-08 22:09:11 +02:00
strangerke
ab0b31eb30 TSAGE: Rename SceneHotspot_3 to NamedHotspot 2011-04-08 16:16:30 +02:00