Commit Graph

93 Commits

Author SHA1 Message Date
Sven Hesse
2a1308b4e1 GOB: Add a sanity check 2013-04-15 18:36:44 +02:00
Sven Hesse
1666d9da82 GOB: Fix mult object collision detection I broke in 2007
This fixes the sidescroller levels (like the bees and butterflies)
in Little Red.

I really wonder if this breakage had other effects too...
2012-06-16 01:39:14 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
c88ee19478 GOB: Stub some Adibou mult stuff
svn-id: r55653
2011-01-30 13:14:32 +00:00
Sven Hesse
7ffd94004e GOB: Try to also open VMD files in Gob3 Win
Because the scripts reference it as IMD, while there are actually
only VMDs files in the data files of the Windows version

svn-id: r53037
2010-10-05 21:22:30 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Arnaud Boutonné
97943cef45 Fascination - (SylvainTV) Replace DRAW_DRAWLETTER by DRAW_BLITSURF. It makes a difference for Fascination, not for the other games using mult_v2. This fixes the refresh of all the little animations in Fascination.
svn-id: r52132
2010-08-16 21:16:13 +00:00
Sven Hesse
cebc1aca81 GOB: Fix playing of slot videos
The actual frame content is still not there, though :P

svn-id: r51911
2010-08-08 01:03:21 +00:00
Sven Hesse
bab55f3a1d GOB: Adapt the remaining bits to the new VideoPlayer interface
svn-id: r51895
2010-08-08 00:55:27 +00:00
Sven Hesse
2296aad042 VIDEO/GOB: Fix IMD playing
Fix IMD playing for some fringe cases, especially when seeking
beforehand.

svn-id: r51871
2010-08-08 00:44:33 +00:00
Sven Hesse
a824bcefaa GOB: Make playImd() use the new VideoPlayer interface
svn-id: r51868
2010-08-08 00:43:22 +00:00
Sven Hesse
4415953393 GOB: Add constants for different surfaces/sprites
Add
static const int kFrontSurface   = 20;
static const int kBackSurface    = 21;
static const int kAnimSurface    = 22;
static const int kCursorSurface  = 23;
static const int kCaptureSurface = 30;
to class Draw and substitute the raw numbers in other files with
those aliases, for readability.

svn-id: r51852
2010-08-08 00:35:18 +00:00
Sven Hesse
a802e1e64f VIDEO: Stub a VideoDecoder-like CoktelDecoder
This creates a new CoktelDecoder class using the VideoDecoder
interface, which will eventually become the new way to decode
PreIMD, IMD and VMD videos.
Since the VideoPlayer in gob is not yet ready for this, we're
disabling all video playback in the gob engine for now.

svn-id: r51850
2010-08-08 00:33:59 +00:00
Torbjörn Andersson
30a92bec6b Removed unused variables.
svn-id: r50947
2010-07-16 23:02:17 +00:00
Arnaud Boutonné
7601f1b14f gob - fix valgrind warning: invalid read when animKeysCount equals 0
svn-id: r44716
2009-10-06 19:57:17 +00:00
Sven Hesse
256a27350a Changed the scroll-handling to be more like the original. This fixes bug #2832362 ("GOB3: Scrolling locked after cutscene")
svn-id: r43147
2009-08-08 21:43:07 +00:00
Sven Hesse
d03dc08b64 Wrapping resources (out of TOT, EXT, IM? and EX? files) loading into its own class
svn-id: r41839
2009-06-24 21:49:37 +00:00
Sven Hesse
f6118f7a85 Added Script methods to get the TOT major and minor version
svn-id: r41788
2009-06-23 01:19:03 +00:00
Sven Hesse
962fc19b57 Encapsulating script file access
svn-id: r41753
2009-06-22 10:13:37 +00:00
Sven Hesse
48a8e69546 Fixed an animation speed regression that got introduced when I added a lag compensation for Woodruff
svn-id: r41508
2009-06-14 12:19:42 +00:00
Sven Hesse
6f49d1576b Added a workaround for Win Lost in Time.
It's got VMD files which are still referenced as IMD

svn-id: r41407
2009-06-09 18:53:35 +00:00
Max Horn
0989bb0b90 GOB: Got rid of class ReferenceCounter; changed SurfaceDesc::Ptr to SurfaceDescPtr (a Common::SharedPtr); and changed many SurfaceDesc pointers to references
svn-id: r41299
2009-06-06 20:03:13 +00:00
Sven Hesse
c88b077fcc Some minor clean-up
svn-id: r40166
2009-04-27 18:56:28 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Sven Hesse
4e0485197f Fixing a segfault in the Bargon Attack menu
svn-id: r33896
2008-08-15 10:47:42 +00:00
Sven Hesse
c1ec21d999 Changed tricky variable access from pointers to a new class that minds endianess.
This should fix a few regressions with BE games on LE systems and vice versa that I introduced when I changed how variables are stored (which was necessary to get Woodruff work on BE systems).

svn-id: r33014
2008-07-12 15:21:38 +00:00
Sven Hesse
14c411e90b Fixing the "meteor fragment and bluxtre pulp not drawn"-glitch by not closing the object video right when it finished playing through
svn-id: r32172
2008-05-18 15:02:01 +00:00
Sven Hesse
5127f1a8f1 Fixing the "object videos not minding drawing order / limits" glitch in Woodruff
svn-id: r32146
2008-05-17 04:07:16 +00:00
Sven Hesse
85d28316ac Implemented support for object videos with more than 256 frames, this fixes a lockup when entering the bar
svn-id: r32087
2008-05-13 15:52:01 +00:00
Sven Hesse
220d6ce82f Restructured sound code
svn-id: r31937
2008-05-08 00:47:23 +00:00
Sven Hesse
9d5eea2d2c Sound in object videos works now, too
svn-id: r31916
2008-05-07 03:49:53 +00:00
Sven Hesse
5681ae1e82 Draw order related fixes.
This also (finally) fixes the Gob3 draw order glitch (for real, this time)

svn-id: r31915
2008-05-07 02:56:18 +00:00
Sven Hesse
edff41b1c3 Correct o2_initScreen() for Woodruff (screen positioning, clipping and cursor limiting)
svn-id: r31846
2008-05-03 20:08:46 +00:00
Sven Hesse
ea5482e6b1 Changed signess of some drawing order related vars, fixing a drawing glitch in Gob3
svn-id: r31792
2008-04-30 20:07:33 +00:00
Sven Hesse
ab1a3b0cc8 Implemented support for VMDs substituting object animations.
Still far from being complete (and correct), but it's a start...

- Only VMD "command" -3 is followed
- Not all animation types are working
- Timing is still off in most cases
- Offsets are generally OK, but not always
- No sound yet
- Shouldn't segfault randomly, but I'm not entirely sure ;)

svn-id: r31750
2008-04-27 03:19:19 +00:00
Paul Gilbert
6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Sven Hesse
b48a14734b (Finally) fixed the turning around counterclockwise in Lost in Time.
svn-id: r28488
2007-08-08 03:42:33 +00:00
Sven Hesse
f06f150c76 Restructured and cleaned-up IMD playing
svn-id: r28327
2007-07-30 15:53:38 +00:00
Sven Hesse
d95056ce78 Fixing bug #1749688 ("GOB3: Objects Disappear")
svn-id: r28181
2007-07-24 06:11:38 +00:00
Sven Hesse
ac0c380268 Fixing scrolling issue in "IDOL"-screen (bug #1734007)
svn-id: r27248
2007-06-09 13:32:31 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Sven Hesse
0504f18e9f - Added a workaround for bug #1705338 (Seg fault when trying to switch screen in music land) which is actually a script bug.
- Fixed the scrolling bug (#1709574) (the mouse cursor is still shown, that's an instance of the global cursor visibility issue)

svn-id: r27010
2007-05-30 10:20:21 +00:00
Sven Hesse
8d7d61f1f6 Some more small fixes. Gob3 is completable now :)
svn-id: r26556
2007-04-21 20:13:15 +00:00
Sven Hesse
c5e7eaf7db This should fix bug #1694830
svn-id: r26382
2007-04-05 13:36:26 +00:00
Sven Hesse
53119f2c5d "char *" -> "byte *" where appropriate
svn-id: r26369
2007-04-02 11:05:09 +00:00
Sven Hesse
d65e05841a - Fixed the IMD playing within mults, the non-interactive Gob3 demo should work better now
- Replaced strcpy with strncpy where appropriate
- Added detection entries for other languages of the multilingual Gob3 CD; bug #1691230

svn-id: r26327
2007-03-30 17:52:31 +00:00
Sven Hesse
33c6a6f460 Fixing curly bracket style
svn-id: r26326
2007-03-29 21:03:32 +00:00
Sven Hesse
046fe5060b Formatting (Take that, LordHoto! ;P)
svn-id: r26324
2007-03-29 20:49:37 +00:00
Sven Hesse
2dc7cb2cd4 Major clean-up, including:
- Cutting down the code-dup
- Plucking leaks
- Removing dead/unused code
- Properly naming "word_2342F"-style variables and functions (removing the warnings alongside)
- Fleshing out the "stubby" functions
- Moving functions and variables to more appropriate/logical places
- Re-ordering functions and variables
- Re-structuring functions
- Moving the IMD stuff into a new "Imd" class in the new imd.cpp/.h (still to be completely implemented and cleaned up)
- Formatting
- Getting rid off the classes "Anim", "Pack" and "Timer", along with their files

svn-id: r26252
2007-03-20 14:51:57 +00:00