Commit Graph

503 Commits

Author SHA1 Message Date
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
Max Horn
0ec193b4be changing AudioDataType -> SoundType, so now the constant names match the name of the data type / the SoundMixer method names
svn-id: r17052
2005-03-09 18:12:54 +00:00
Torbjörn Andersson
61faa88b93 Indentation.
svn-id: r17048
2005-03-09 07:29:15 +00:00
Torbjörn Andersson
7f511a2a45 Updated comment. (ScummVM no longer crashes if I try to run what I think is
the correct scripts.)

svn-id: r17047
2005-03-09 07:28:49 +00:00
Torbjörn Andersson
cfe44d6053 Apparently, in IHNM opcode #75 can take three parameters. Added stub to
avoid division by zero.

svn-id: r17040
2005-03-08 15:28:01 +00:00
Torbjörn Andersson
189492eef1 Fixed typo.
svn-id: r17039
2005-03-08 15:06:57 +00:00
Torbjörn Andersson
213a9de6a1 Added constant for the resource number for the first IHNM scene. Actually,
I believe it's the wrong scene.

Currently we use resource 152, which run the scripts "CampFireSetup" and
"CampFireScene". If I use resource 151 instead it will run the scripts
"ColumnSetup" and "ColumnScene" instead. I'm speculating that this is the
"hate" speech and the rest of the intro ("ColumnScene" is a fairly long
script, as far as I can tell), but unfortunately this causes ScummVM to
crash almost immediately.

I'll need to dissect the scripts to see if I can figure out what's wrong.

svn-id: r17036
2005-03-08 10:59:31 +00:00
Torbjörn Andersson
ef43877b6b Indentation
svn-id: r17028
2005-03-07 11:49:59 +00:00
Andrew Kurushin
baf72d3e94 fix iso mode object draw order
svn-id: r16936
2005-02-26 18:06:55 +00:00
Andrew Kurushin
343d59c9d4 implemented iso pathfinding
glitches: some tiles draws above figures

svn-id: r16935
2005-02-26 17:37:16 +00:00
Travis Howell
ca660a3512 Compile fix from wjp
svn-id: r16933
2005-02-26 12:12:15 +00:00
Andrew Kurushin
280003edee iso pathfining work in progress:
- all figures now stands in right way on iso scene startup

svn-id: r16931
2005-02-26 11:44:30 +00:00
Torbjörn Andersson
4f01f5e6e9 I'm not quite sure if this is the correct fix, but by not calling
updateActorsScene() when _sceneNumber is -1 we avoid followers going into
that scene and being drawn (as garbage) early during the ITE intro. (Look
in the upper left corner -- that's where the garbage appeared for me.)

svn-id: r16895
2005-02-24 08:03:47 +00:00
Andrew Kurushin
be2049a338 3 stage iso drawing implemented:
1)iso scene
  2)figure
  3)tiles above figure

svn-id: r16864
2005-02-22 20:18:55 +00:00
Andrew Kurushin
bbbd3b5fbf iso mode drawing work in progress
svn-id: r16802
2005-02-18 00:00:00 +00:00
Andrew Kurushin
509d7b4d45 - smooth iso scroll
svn-id: r16776
2005-02-11 22:18:37 +00:00
Andrew Kurushin
5239c2f477 - fix min->MIN
- implemented horizontal tile cliping

svn-id: r16774
2005-02-11 20:59:29 +00:00
Andrew Kurushin
9497fddcf0 iso draw work in progress:
- try keyboard arrows on iso scene
- todo: horizontal cliping

svn-id: r16773
2005-02-11 20:43:48 +00:00
Andrew Kurushin
ea78766c46 first step in ISO mode implementation - trying to draw iso scene
svn-id: r16763
2005-02-09 20:30:45 +00:00
Andrew Kurushin
aeaf728dc6 partialy implemented all Iso mode resource loading
todo: loadMulti - may be wrong

svn-id: r16670
2005-01-28 19:25:41 +00:00
Eugene Sandulenko
ff8094aad5 Combine actordata.cpp and objectdata.cpp into itedata.cpp. These are
ITE specific and from other hand IHNM has these data in resources.

svn-id: r16662
2005-01-28 12:54:09 +00:00
Eugene Sandulenko
285f6a6a2b Let IHNM run again. It has 105 script functions.
svn-id: r16653
2005-01-28 03:47:12 +00:00
Eugene Sandulenko
0523480a70 Applied patch #1106775 "SAGA colours". This simplifies code considerably, and
moreover getBlack() didn't always work correctly for some reason. If IHNM
uses different colors we will switch to variables, but that could be addressed
later or at least when someone will start to work on it more time than now.

svn-id: r16647
2005-01-27 20:07:04 +00:00
Torbjörn Andersson
8bfbc143a8 The sfRand() script function was slightly wrong
Old behaviour:     0 <= random number <= param
Correct behaviour: 0 <= random number < param

svn-id: r16636
2005-01-25 18:16:02 +00:00
Eugene Sandulenko
212306044d Picky indentation. Main reason is to make version 1.100 :P.
svn-id: r16626
2005-01-23 21:55:13 +00:00
Eugene Sandulenko
86dc6a3d85 Another spot of kReplyOnce usage. Thanks to proper memory addressing now
it is possible to implement.

svn-id: r16625
2005-01-23 21:52:43 +00:00
Eugene Sandulenko
b646d63dad Reenable stub for latter demos in sfScriptGotoScene()
svn-id: r16623
2005-01-23 17:06:15 +00:00
Max Horn
8f51510dec Fix warnings
svn-id: r16622
2005-01-23 14:30:59 +00:00
Andrew Kurushin
4f68706f3c implemented sfWaitWalk scriptFunction
svn-id: r16619
2005-01-22 21:40:54 +00:00
Andrew Kurushin
01a863414e - removed returning value from scriptFunctions
- implement some scriptFunctions

svn-id: r16618
2005-01-22 19:21:38 +00:00