13781 Commits

Author SHA1 Message Date
Travis Howell
211da446cc Reset additional fields
svn-id: r17871
2005-04-30 05:47:09 +00:00
Travis Howell
abef7907df Set sprite id & group number for wizImages.
svn-id: r17870
2005-04-30 05:34:31 +00:00
Travis Howell
7118921a2a Add expanded _wizParams used by HE100 games.
Add u32 version variable.

svn-id: r17869
2005-04-30 05:25:06 +00:00
Travis Howell
a08f1b8c69 Add a few case stubs for moondemo.
svn-id: r17868
2005-04-30 04:05:02 +00:00
Travis Howell
c20ee1e634 Add missing case.
svn-id: r17867
2005-04-30 01:26:57 +00:00
Travis Howell
ce909a35b3 Some sound resources in soccer2004 are compressed too.
Add Moonbase demo, as testing target only.

svn-id: r17866
2005-04-29 15:33:07 +00:00
Torbjörn Andersson
3911fc6edb Added comment.
svn-id: r17865
2005-04-29 15:13:21 +00:00
Travis Howell
c885171c51 Several HE100 games (moondemo/soccer2004) allow 1024 local scripts.
svn-id: r17864
2005-04-29 15:08:31 +00:00
Torbjörn Andersson
5a2d871a2b Replaced rand()/srand() with RandomSource. Of course, util_getRandom() is a
pretty unnecessary function - we could call RandomSource directly - but
let's take this one thing at a time.

svn-id: r17863
2005-04-29 15:01:03 +00:00
Torbjörn Andersson
9bd7d78199 Some limited - and quite possibly wrong - sound effects support. I have
assumed, given their tiny size, that the sound samples are 8-bit mono.

Looping is not implemented yet.

Some sounds are skipped since the engine asks that they be played at a
negative sample rate. (I think there is more to this than just a simple
signed/unsigned issue, because they sound wrong even if I treat the
frequency as unsigned.)

svn-id: r17862
2005-04-29 10:07:00 +00:00
Eugene Sandulenko
f8283f3aa5 Add comment to NES-specifix gfx hack with virtual screens
svn-id: r17861
2005-04-29 06:36:03 +00:00
Travis Howell
cbd2e319ea Ooops
svn-id: r17860
2005-04-29 01:45:38 +00:00
Travis Howell
2f262b3c3e Add HE90 version of processActors().
Add HE71 class, for HE71+ specifics.

svn-id: r17859
2005-04-29 01:36:30 +00:00
Travis Howell
4b4242e973 Remove extra whitespace.
svn-id: r17858
2005-04-29 01:10:49 +00:00
Travis Howell
08e115a516 pajama3 requires GF_HE_LOCALIZED
Add freddi2 specific filter for (PU1/PU2) prefix in subtitles.

svn-id: r17857
2005-04-29 01:08:58 +00:00
Max Horn
d03b092659 Moved blast text/object code to ScummEngine_v6
svn-id: r17856
2005-04-28 22:34:56 +00:00
Max Horn
c5127d3c05 Moved bundle based localization code to ScummEngine_v7
svn-id: r17855
2005-04-28 22:17:23 +00:00
Max Horn
e8865cc596 Extract code works will any WriteStream, not just MemoryWriteStream
svn-id: r17854
2005-04-28 21:02:43 +00:00
Max Horn
b515dd1333 Moved Stream::eos() to ReadStream::eos()
svn-id: r17853
2005-04-28 20:59:19 +00:00
Andrew Kurushin
3b1f8da4be save load preparetion
svn-id: r17852
2005-04-28 17:19:43 +00:00
Torbjörn Andersson
589b65945a This should fix a crash which could happen when placing several objects too
close to each other on the ground. (Happened to me on the first level after
destroying the voodoo doll, where I'd drop the banana, the soap and the
false nose close to each other on the ground after using them.)

Reasoning behind the change:

From what I understand, map_itemsMap[] contains information for each "cell"
of the map about which objects are there. Each cell can contain two objects
which are stored in the upper and lower byte of a 16-bit word.

When dropping an object, it is written into map_itemsMap[], but not just to
the indicated cell but also to a few of the surrounding ones. Presumably to
make it easier to pick it up afterwards.

When writing an object to a cell, we check if one of the bytes is already
occupied. If it is, write to the other byte. Otherwise, write to that byte.
(If both bytes are occupied, one will be overwritten.)

The old code assumed that if one byte was free at position (x,y) the same
byte would automatically be the free one in the surrounding cells. This
could cause bad values in the array, since the item was added to an
existing value, rather than replacing it.

This new code makes the check for each cell that is modified. (It also gets
rid of some code duplication.)

svn-id: r17851
2005-04-28 10:34:48 +00:00
Travis Howell
98ed7a10d0 Out dated and pointless now.
svn-id: r17850
2005-04-28 01:44:26 +00:00
Travis Howell
9454b63f94 Add Macintosh version of putttime.
svn-id: r17849
2005-04-28 01:31:30 +00:00
Max Horn
ec43585537 Added new handleMouseOver to allow further refactoring of the V2 specific verb code; added a TODO comment regarding the blast code
svn-id: r17848
2005-04-28 01:04:42 +00:00
Max Horn
5109e82c35 Refactor HE actor post/pre-processing code a bit (some more cleanup for HE90 could probably be done, but I'll leave that to the HE folks for now :-)
svn-id: r17847
2005-04-28 00:45:06 +00:00
Max Horn
3ee1fe9b57 Forgot to commit this, oops :-/
svn-id: r17846
2005-04-28 00:23:08 +00:00
Max Horn
18bf7c7900 Comment on some MM NES oddity, I hope somebody can explain this :-)
svn-id: r17845
2005-04-28 00:22:05 +00:00
Marcus Comstedt
925c69797d Slightly more elegant LauncherDialog connector.
svn-id: r17844
2005-04-27 21:58:21 +00:00
Marcus Comstedt
f95e696034 Added eos() method.
svn-id: r17843
2005-04-27 21:57:13 +00:00
Max Horn
4ec7161032 Patch #1186744 (Common line-drawing function)
svn-id: r17842
2005-04-27 20:29:19 +00:00
Torbjörn Andersson
6fb944befd Call blitCursor() when changing scaler to give it the opportunity to switch
between blurry and non-blurry cursor scaling, even if the scale factor
remains unchanged.

svn-id: r17841
2005-04-27 14:47:19 +00:00
Travis Howell
7c3cfae122 Minor cleanup.
svn-id: r17840
2005-04-27 14:47:10 +00:00
Travis Howell
8545634aaa Rename function.
svn-id: r17839
2005-04-27 14:30:32 +00:00
Travis Howell
f5189c323b Minor clean up, HE games should always copy strings directly.
svn-id: r17838
2005-04-27 14:26:52 +00:00
Travis Howell
f6971f847c Fix glitch when skipping AUX sequence in freddi.
Add missing bits of AUX code.

svn-id: r17837
2005-04-27 13:55:55 +00:00
Andrew Kurushin
2c01219791 some load-save preparetion
svn-id: r17836
2005-04-27 11:51:11 +00:00
Travis Howell
7c11e68db3 Correct actor clipping in HE games.
The original games rect clipping was not as strict.

svn-id: r17835
2005-04-27 09:15:18 +00:00
Max Horn
3a4c1f057e Use a pointer ref for RGBtoYUV, instead of an array, so that we can choose to allocate RGBtoYUV on the heap; added a comment that tries to explain why RGBtoYUV and LUT16to32 are evil and slow and how they could be removed
svn-id: r17834
2005-04-27 08:43:23 +00:00
Max Horn
b407f0040e Fix comment (copy & paste are evil)
svn-id: r17833
2005-04-27 07:57:28 +00:00
Travis Howell
e05d6e8331 Add feature flag for HE games which appear to have localized versions.
Allows accurate filtering of filename in subtitles.

svn-id: r17832
2005-04-27 05:05:10 +00:00
Travis Howell
3065bab0cb Add some basic support for pjgames.
svn-id: r17831
2005-04-27 04:47:02 +00:00
Robert Göffringmann
f28c3d14a3 fixed filehandling bug
svn-id: r17830
2005-04-27 02:16:34 +00:00
Max Horn
fc016e8e8a Added a few more comments
svn-id: r17829
2005-04-26 16:43:20 +00:00
Max Horn
b56b84b145 Use kVerbVirtScreen were appropriate; removed unused param from initVirtScreen
svn-id: r17828
2005-04-26 15:52:55 +00:00
Max Horn
3a4dafeaa3 desaturatePalette is V8 specific
svn-id: r17827
2005-04-26 15:42:35 +00:00
Max Horn
ab53558315 Fixed incorrect use of kMainVirtScreen
svn-id: r17826
2005-04-26 15:41:15 +00:00
Travis Howell
e88ed2908e Save _hePalettes in HE99+ games.
svn-id: r17825
2005-04-26 15:31:51 +00:00
Travis Howell
26ace23092 Save addtion HE opcodes specific variables.
svn-id: r17824
2005-04-26 15:13:04 +00:00
Max Horn
4239ac7407 Since we don't store _CLUT_offs anymore, we can clean up the code related to it now
svn-id: r17823
2005-04-26 14:24:29 +00:00
Max Horn
973cb9a281 Make use of the new loadRoomSubBlocks (which only loads static room data now) in the save/load code; this also means we have to save a bit less data, and reduce code duplication
svn-id: r17822
2005-04-26 14:18:34 +00:00