74 Commits

Author SHA1 Message Date
Filippos Karapetis
80acb21a56 Added automatic detection of the IHNM demo
svn-id: r49047
2010-05-16 10:36:21 +00:00
Torbjörn Andersson
65585f6433 Silenced some harmless cppcheck warnings about unreachable code after a return.
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.

svn-id: r48218
2010-03-10 06:39:23 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
1011508325 Slightly modified version of Patch #2838562: Improve endian.h and stream.h
svn-id: r44027
2009-09-11 08:55:47 +00:00
Norbert Lange
54ef7a892b reverting changes from patch 43696 that shouldnt have been committed
svn-id: r43697
2009-08-24 13:08:21 +00:00
Norbert Lange
184aae3c8c Enable alternative palettse for Amiga Monkey Island - Patch ID: 2819787
use tables for palette colors instead of code with constants

svn-id: r43696
2009-08-24 12:39:03 +00:00
Filippos Karapetis
d5b6996c45 - Split the IHNM script functions into a different file
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS)

svn-id: r35672
2009-01-02 16:52:38 +00:00
Filippos Karapetis
9a57f42399 logicalWidth -> width
logicalHeight -> height

svn-id: r35488
2008-12-22 14:36:58 +00:00
Filippos Karapetis
437384a838 - Split the SAGA resource manager in 3 different ones, depending on the resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub
- Added detection for the voice file of FTA2

svn-id: r35484
2008-12-22 14:13:15 +00:00
Filippos Karapetis
2257db88d3 - Added some stubs for the SAGA2 games dino and fta2
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM)
- Removed getDisplayWidth() and getDisplayHeight()

svn-id: r35473
2008-12-21 22:52:44 +00:00
Filippos Karapetis
d0f4f97ea9 Cleaned up the mess with game IDs and game types: removed game types, reduced the game IDs and added game features where necessary
svn-id: r35467
2008-12-21 15:59:05 +00:00
Filippos Karapetis
cfa939d151 - Stop passing the scene clip rectangle around for no reason
- More changes for dirty rectangle handling
- Stop adding dirty rectangles that cover the whole screen for no reason
- Dirty rectangle handling is still very buggy, so it's still disabled

svn-id: r35314
2008-12-12 14:23:02 +00:00
Filippos Karapetis
f3a60a8c96 Cleanup
svn-id: r35259
2008-12-06 13:35:27 +00:00
Filippos Karapetis
df694b3de1 Cleanup
svn-id: r35114
2008-11-18 17:37:01 +00:00
Filippos Karapetis
e377ed856d Readded missing special case for the storm animation in ITE. Fixes bug #2125675 - "ITE: Game locks up in storm clouds scene"
svn-id: r34639
2008-09-24 07:26:45 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +00:00
Christopher Page
dd423f803b SAGA: Fixed memory leaks in the SAGA engine
svn-id: r32673
2008-06-12 16:58:02 +00:00
Filippos Karapetis
5f493ce618 Added a workaround so that the mob of prisoners in Nimdok's chapter is shown correctly after a cutaway is shown
svn-id: r30991
2008-02-28 00:17:51 +00:00
Filippos Karapetis
a3f2f4b039 This safeguard is no longer needed for IHNM
svn-id: r30956
2008-02-24 16:56:28 +00:00
Filippos Karapetis
ef9850166d Fix for bug #1900254 - "ITE: Glitches when bridging the gorge"
svn-id: r30955
2008-02-24 16:12:47 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +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
Eugene Sandulenko
9778bec419 Fix bug when some animations were playing too fast.
svn-id: r28924
2007-09-16 11:37:14 +00:00
Filippos Karapetis
5fa2b1a3c5 Palette fade in when a cutaway starts in IHNM is working now. Also, the fade mode is properly set in all cases where palette fadeout is used. Some code formatting
svn-id: r28904
2007-09-15 12:09:56 +00:00
Filippos Karapetis
db8b8a0c5f Fix the crash in the IHNM intro
svn-id: r28789
2007-09-01 16:32:00 +00:00
Eugene Sandulenko
2d729927c5 Do not decode frames beyond maxFrames to avoid any potential issues
svn-id: r28788
2007-09-01 15:03:44 +00:00
Filippos Karapetis
9329f9a8c6 Modified the workaround for the IHNM end credits animation
svn-id: r28785
2007-09-01 12:43:22 +00:00
Torbjörn Andersson
ee2b33376f Don't go out of bounds when filling anim->frameOffsets[].
svn-id: r28782
2007-09-01 11:04:34 +00:00
Eugene Sandulenko
e3b6d81e82 This is a pseudo-commit. Previous commit log message for this file should read
as follows:
Fix recent regression crash in IHNM intro.

svn-id: r28781
2007-09-01 10:51:11 +00:00
Eugene Sandulenko
809f022be4 Proper height for Chinese characters, also remove obsolete hack for computing
character base.

svn-id: r28779
2007-09-01 10:48:05 +00:00
Torbjörn Andersson
c7e6db919e Slight simplification.
svn-id: r28776
2007-08-31 20:18:07 +00:00
Eugene Sandulenko
dc0088f8fd Fix end credits in IHNM. Now video length is determined properly.
svn-id: r28771
2007-08-31 10:59:33 +00:00
Eugene Sandulenko
091ef596d1 Fix warning
svn-id: r28770
2007-08-31 10:10:11 +00:00
Filippos Karapetis
f398f99b75 Some slight updates to palette fadeout/fadein before a cutaway starts (still not working, though)
svn-id: r28769
2007-08-31 08:20:41 +00:00
Filippos Karapetis
dd3157614f Some cleanup for the IHNM demo
svn-id: r28766
2007-08-31 07:20:57 +00:00
Eugene Sandulenko
66ccbb97d1 Proper implementation of intro and credits in IHNM
svn-id: r28763
2007-08-30 17:55:19 +00:00
Filippos Karapetis
4e5d819732 IHNM's ending is shown correctly now (but the credits still aren't). Slight update on the music of chapter 6
svn-id: r28753
2007-08-27 09:30:23 +00:00
Filippos Karapetis
40ec12f64e Added a temporary workaround for an issue with animations
svn-id: r28738
2007-08-25 23:46:04 +00:00
Filippos Karapetis
8493c06d1d Always reset an animation when it's done playing
svn-id: r28737
2007-08-25 23:29:53 +00:00
Filippos Karapetis
9f8b0884fa Fixed a regression
svn-id: r28733
2007-08-25 19:59:07 +00:00
Filippos Karapetis
4afe739687 The intro of IHNM is shown correctly now
svn-id: r28723
2007-08-25 16:00:50 +00:00
Filippos Karapetis
e156f0ff87 The frame count needs to be updated for cutaways without an animation bit as well. Removed a hack for the nightfall scene in Benny's chapter
svn-id: r28709
2007-08-24 13:40:03 +00:00
Filippos Karapetis
84d2dda5ed Code cleanup for the IHNM demo
svn-id: r28707
2007-08-24 12:05:05 +00:00
Filippos Karapetis
65c390cbfc Clearcutaway now sets the scene's palette. Removed two workarounds for the IHNM demo
svn-id: r28704
2007-08-24 11:35:59 +00:00
Filippos Karapetis
96e0eeb94d Updated some comments
svn-id: r28685
2007-08-21 12:46:21 +00:00
Filippos Karapetis
7a04b16d73 When restarting an animation, make sure that the animation's current frame is set to 0. This fixes issues where replaying the same animation would lead to a crash (e.g. with Gorrister at the animal cages)
svn-id: r28581
2007-08-13 08:51:40 +00:00
Filippos Karapetis
cd20f09a9d Cleanup: removed dead code, fixed some comments and did some layout changes
svn-id: r28362
2007-07-31 18:08:40 +00:00
Filippos Karapetis
889d1a4aee The interactive part of the IHNM demo fully works now. Also, made the options screen work in the non-interactive part of the demo
svn-id: r28344
2007-07-30 23:37:18 +00:00
Filippos Karapetis
2c40b302ab The palette in Benny's part in the IHNM demo is correct now
svn-id: r28266
2007-07-28 13:28:25 +00:00
Filippos Karapetis
3d434b1233 Fixed one of the incorrectly loaded palettes in Benny's part in the IHNM demo
svn-id: r28255
2007-07-28 02:25:09 +00:00