532 Commits

Author SHA1 Message Date
Max Horn
a67144f72f Either document all params or none, anything inbetween causes Doxygen to complain loudly
svn-id: r18001
2005-05-09 12:27:31 +00:00
Torbjörn Andersson
519c023e4b Fixed failed assertion when entering the Elk King's court. It looks like a
hack - perhaps it *is* a hack - but it's what the original engine did too,
as far as I can tell.

svn-id: r17992
2005-05-09 06:36:27 +00:00
Max Horn
cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +00:00
Torbjörn Andersson
9d20c7e21f Changed error() to warning() since it appears to be relatively harmless. Is
the 'start' field even used? Anyway, the entrance to the forest can now be
entered.

The animation code will produce an "Anim::play: Error decoding frame 40!"
warning in addition to the previous one, but I don't see any visible errors
in the scene.

svn-id: r17968
2005-05-08 16:27:16 +00:00
Andrew Kurushin
a81b093e65 fixed sfSceneEq bug
fixed load actors entrance
removed some orphans

svn-id: r17964
2005-05-08 14:04:06 +00:00
Eugene Sandulenko
575e94602c o Fixed ADPCM decoder length bug
o Plugged IMA ADPCM into SCUMM engine so latter HE titles now have speech
  though it is somewhat noisy don't know why as decoder is based on ADPCM
   reference implementation.

svn-id: r17904
2005-05-03 22:12:23 +00:00
Eugene Sandulenko
a71d60686c Moved Oki ADPCM aka VOX decoder from SAGA engine to common sound/ directory.
Implemented IMA ADPCM decoder.

svn-id: r17903
2005-05-03 20:36:07 +00:00
Andrew Kurushin
3b1f8da4be save load preparetion
svn-id: r17852
2005-04-28 17:19:43 +00:00
Andrew Kurushin
2c01219791 some load-save preparetion
svn-id: r17836
2005-04-27 11:51:11 +00:00
Max Horn
da5f819cf9 You can safely delete/free null pointers
svn-id: r17792
2005-04-24 18:26:12 +00:00
Torbjörn Andersson
59f6002b03 Fixed warning. (Unused variables.)
svn-id: r17790
2005-04-24 15:35:03 +00:00
Andrew Kurushin
a909052c8d fixed object frawing
implemented sfGetObjImage, sfSetObjImage, sfSetObjName

svn-id: r17789
2005-04-24 15:17:38 +00:00
Torbjörn Andersson
6f29b92a5f I believe this is the correct fix for the sanctuary door bug.
svn-id: r17786
2005-04-24 12:08:27 +00:00
Max Horn
29d249c696 Remove StringMap class from map.h (at least for now)
svn-id: r17772
2005-04-23 14:28:59 +00:00
Torbjörn Andersson
78b340adfb Whitespace
svn-id: r17771
2005-04-23 14:15:00 +00:00
Andrew Kurushin
edad36ee60 fixed sfDropObject implementation
svn-id: r17767
2005-04-23 12:34:35 +00:00
Max Horn
969ef3dac9 * Added new virtual base class 'Stream', ReadStream and
WriteStream are now subclasses of it.
* Added new methods eos(), ioFailed(), clearIOFailed() to
  all streams. This allows better error checking.
* SaveFile classes take advantage of these new standard
  stream APIS
* Removed File::gets()
* Added SeekableReadStream::readLine() (replaces File::gets)
* Added WriteStream::writeString, for convenience

svn-id: r17752
2005-04-22 17:40:09 +00:00
Andrew Kurushin
ca33ec4563 fixes sfEnableZone ( 'house' problem )
svn-id: r17751
2005-04-22 16:41:44 +00:00
Andrew Kurushin
f3049a41f4 fixed non assigned buttons in IHNM
svn-id: r17750
2005-04-22 15:43:42 +00:00
Torbjörn Andersson
2ea2b51ed5 Changed "BYTE" to "int".
svn-id: r17749
2005-04-22 15:26:50 +00:00
Andrew Kurushin
cdede6caa4 implemented inventory
todo: timeout catchup & capital 'U' & 'D' handling

svn-id: r17748
2005-04-22 14:11:04 +00:00
Eugene Sandulenko
65ade039ec o Fix save/load. Now it restores game properly but still at exit #0.
o Proper background for inset rooms. Crowd is gone now.
o Draw black border around inset rooms.

svn-id: r17744
2005-04-22 01:38:27 +00:00
Eugene Sandulenko
283a9f35ac Add not yet correctly working save/load. Use key F7 for saving
and F8 for loading. Now works only within current scene and restores
to entrance #0 which is wrong.

svn-id: r17726
2005-04-21 01:30:07 +00:00
Eugene Sandulenko
bd5f93cece Implement inventoryItemPosition()
svn-id: r17724
2005-04-20 23:42:19 +00:00
Andrew Kurushin
89c0e7a69c fixed actors bug after all demo passed
svn-id: r17717
2005-04-20 19:38:04 +00:00
Eugene Sandulenko
d23878ab6c Separate occaionally glued intro sentence words.
svn-id: r17696
2005-04-19 22:18:09 +00:00
Andrew Kurushin
d9bb4aae1d fixed speech lock
svn-id: r17689
2005-04-19 11:07:06 +00:00
Torbjörn Andersson
90886d9506 Fixed warnings.
svn-id: r17682
2005-04-19 07:44:01 +00:00
Andrew Kurushin
d52032c75c converse support improved (still has some bugs)
fixed: now protagonist can't be target object
fixed: statusbar color
added: *mouseButtonPressed in SagaEngine

svn-id: r17672
2005-04-18 20:03:14 +00:00
Eugene Sandulenko
769b2fed46 o Unstubbed sfPreDialog -- we have enough code for that
o Started to restore inventory functionality

svn-id: r17666
2005-04-18 10:26:43 +00:00
Eugene Sandulenko
1cce2fd366 Renamed 2 script functions which are correct.
Moved messages about missinf script functions to top level and made
them more visible

svn-id: r17651
2005-04-17 11:53:25 +00:00
Eugene Sandulenko
44acfd9467 Implement sfGetDeltaFrame and sfEnableZone. Fixes freeze when sanctuary
gates open and also used in world map.

Spelling and indentation fixes here and there.

svn-id: r17640
2005-04-16 20:59:24 +00:00
Andrew Kurushin
bffeb58d06 fixed: sprite hittest, speech draws in screen bounds
svn-id: r17635
2005-04-16 16:55:35 +00:00
Andrew Kurushin
f6d87c8689 fixed ram dialog crash
implemented: sfScriptSpecialWalk,sfScriptWalkRelative,sfScriptMoveRelative

svn-id: r17618
2005-04-16 11:03:34 +00:00
Torbjörn Andersson
20aeccc383 Slightly more informative error message. (I get this if I try to speak to
one of the faire animals. I believe it's the one the original source code
calls "FaireRam - 65", but I haven't verified that.)

svn-id: r17544
2005-04-11 15:34:13 +00:00
Torbjörn Andersson
224b2afbf1 Removed system includes.
svn-id: r17413
2005-04-06 12:19:15 +00:00
Jerome Fisher
eda317924e Committed patch #1168149 (Shared GM/MT-32 mapping) by eriktorbjorn as-is. This does the following:
- Replaces multiple identical MT-32-to-General MIDI mapping tables with a common one in MidiDriver.
- Changes Sky's GmChannel class to allow NULL instrument and velocity mapping tables, giving a 1-to-1 mapping without creating a dummy table.

svn-id: r17361
2005-04-03 22:01:38 +00:00
Andrew Kurushin
db61624fd2 -fixed interpreter bug: on opCall now pushes additional data for compatibly
ps:doors can be opened

svn-id: r17350
2005-04-03 17:23:02 +00:00
Andrew Kurushin
8ea88c95d6 - fixed tile doors drawing
- right mouse action fixed

svn-id: r17347
2005-04-03 15:32:04 +00:00
Andrew Kurushin
13e2492b93 some world map fix:
-only riff shows as small point
-change scene from world map
todo: in original  talk_to not shows for riff on world map

svn-id: r17340
2005-04-02 20:04:39 +00:00
Andrew Kurushin
516b1b3748 fixed script params (some fair animals should walk now)
svn-id: r17289
2005-03-29 22:14:20 +00:00
Andrew Kurushin
0266fcbd4b fixed small bug
svn-id: r17288
2005-03-29 21:18:39 +00:00
Andrew Kurushin
6bc301810b fixed gcc ISO C++ error
svn-id: r17287
2005-03-29 19:16:46 +00:00
Andrew Kurushin
1b4b92c0f5 endScene now aborts all running threads (fixing Okk stuckiness on way out of tent)
svn-id: r17286
2005-03-29 17:54:53 +00:00
Max Horn
9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Andrew Kurushin
ca28c47c10 fix wrong multitile offset calculation
svn-id: r17230
2005-03-25 17:48:17 +00:00
Andrew Kurushin
3025db0d07 - changescene on fair for tents
- some memory deallocation fixup

todo: fix follower stuckiness in tents

svn-id: r17180
2005-03-18 17:11:37 +00:00
Andrew Kurushin
7e256531fd fixed wrong tile drawing above actors
svn-id: r17129
2005-03-13 17:43:50 +00:00
Eugene Sandulenko
73ec1f1745 rand() -> _rnd.getRandomNumber() in SAGA code.
svn-id: r17108
2005-03-12 22:54:15 +00:00
Max Horn
7cd2cb2b17 PlayingSoundHandle -> SoundHandle; also, turned the handle activity check into a mixer method
svn-id: r17106
2005-03-12 18:56:09 +00:00