Commit Graph

12637 Commits

Author SHA1 Message Date
Torbjörn Andersson
0b461c8506 Updated copyright header, as discussed on the mailing list.
svn-id: r16580
2005-01-17 10:57:15 +00:00
Torbjörn Andersson
f8865304bd Initialize a few variables to fix Valgrind warnings. (I'm hoping they were
the reason the ITE intro crashed for me.) I still get read warnings in
Sprite::decodeRLEBuffer() though.

Also added a couple of hacks to keep the IHNM intro alive. Once we support
IHNM actors, we'll be able to remove them.

svn-id: r16579
2005-01-17 07:21:08 +00:00
Max Horn
d6ea15bf1f PocketPC issues were fixed on the 0.7.x branch, but which... ?
svn-id: r16578
2005-01-16 23:45:10 +00:00
Andrew Kurushin
9d1f2b670e -small pathfind fix
-pathfind speedup

svn-id: r16576
2005-01-16 20:30:57 +00:00
Andrew Kurushin
a230f60694 - some fix to previous
svn-id: r16575
2005-01-16 19:43:28 +00:00
Andrew Kurushin
f9b4b2cd99 actors entry list implemented
test: in ITE type "scene_change 130" at console

svn-id: r16574
2005-01-16 19:06:04 +00:00
Torbjörn Andersson
bf827cde1d Some more untested opcode fixes. (By the way, I was wrong the other day:
The first IHNM script does not use random branching after all.)

svn-id: r16573
2005-01-16 17:07:27 +00:00
Torbjörn Andersson
eb2bffd185 sfPlayMusic() takes two parameters in IHNM. Since our current
implementation is only right for ITE, disable it for IHNM for now.

svn-id: r16572
2005-01-16 17:06:40 +00:00
Torbjörn Andersson
34565795e8 Slowed down actor movement a bit.
svn-id: r16571
2005-01-16 16:10:06 +00:00
Max Horn
608cfc0149 Fix for bug #1098872 (FTDEMO: Memoryleak in SMUSH player)
svn-id: r16570
2005-01-16 13:34:43 +00:00
Max Horn
d541535ab6 Cosmetic change, avoiding a hypothetical threading problem, see bug #1098864
svn-id: r16569
2005-01-16 13:32:48 +00:00
Andrew Kurushin
fe424ed5ae - added partial scene change by actor's walking (todo:entrance should be supported)
svn-id: r16568
2005-01-15 23:46:43 +00:00
Max Horn
aa9debccec Forgot to commit this
svn-id: r16567
2005-01-15 23:08:12 +00:00
Max Horn
541076d8db Added a convenience class 'Mutex'
svn-id: r16566
2005-01-15 22:41:23 +00:00
Max Horn
2d2cef23a0 Not needed anymore
svn-id: r16565
2005-01-15 21:44:26 +00:00
Max Horn
fcad363886 Get rid of the ConstString class
svn-id: r16564
2005-01-15 21:42:59 +00:00
Max Horn
f7c14e04d2 Fix up/down arrows
svn-id: r16563
2005-01-15 21:33:56 +00:00
Andrew Kurushin
2f20dd57c2 some work in progress on verb stuff:
- many structers and fields renamed to proper names
- added missing functions

svn-id: r16562
2005-01-15 20:12:49 +00:00
Torbjörn Andersson
139f57a29d Use the same hard-coded cursor image and colours as the original ITE
interpreter. Supposedly these colours will stay fairly constant throughout
the game, in which case we no longer need to repaint it with the "best
white" colour every time the palette changes.

svn-id: r16561
2005-01-15 13:41:57 +00:00
Torbjörn Andersson
96d5a1c88d I've changed getTextString() slightly so that if the translated string is
NULL it'll use the English string instead. It seems unnecessary to store
the same string twice, even if it's possible that the compiler is smart
enough to eliminate the duplicates.

Either way it doesn't make much difference now, but we may want to add the
intro strings to the getTextString() mechanism eventually. In that case
most of the credits would be duplicates, for instance.

svn-id: r16560
2005-01-14 11:22:45 +00:00
Torbjörn Andersson
b56f4fd2f6 Removed the unused i_cvar_name field from INTRO_DIALOGUE.
svn-id: r16559
2005-01-14 11:05:12 +00:00
Torbjörn Andersson
e38b689078 Fixed the "random branch" opcode, I hope. I haven't tested it. The first
IHNM script seems to use it, but doesn't get that far because it terminates
on an unknown script function.

svn-id: r16558
2005-01-14 10:10:23 +00:00
Torbjörn Andersson
4870ab61f2 Added helper function to queue the ITE intro dialogue.
svn-id: r16557
2005-01-14 08:02:17 +00:00
Eugene Sandulenko
ccacf6f82e o Added support for German ITE. There are also Puzzle-related messages
hardcoded, but I'll save that for later :)
o Eliminated all leftovers of previous language loader. If you'll spot another
  one, just remove it silently.

svn-id: r16556
2005-01-14 01:17:34 +00:00
Travis Howell
211ec4c32a Change SIMON to use makeWAVStream - patch #1101740
svn-id: r16555
2005-01-14 00:38:54 +00:00
Andrew Kurushin
326dd0c255 - introduced SagaEngine::getTextString (for i18n it should route to corresponding string array)
- first step in verb implementation: proper button draw, keyboard respond 'w','l' &etc
- added comments and some fields to GameDisplayInfo

svn-id: r16554
2005-01-13 22:42:49 +00:00
Torbjörn Andersson
e97c689f8b Removed unused stuff.
svn-id: r16553
2005-01-13 18:00:47 +00:00
Max Horn
05662db4dc Use loadWAVFromStream
svn-id: r16552
2005-01-13 16:28:20 +00:00
Max Horn
59abbd5cc0 queenrebuild was renamed to compress_queen
svn-id: r16551
2005-01-13 15:44:37 +00:00
Torbjörn Andersson
8c708cce8e A few subtitle-related changes:
* Added speechCoords to the SpeechData structure so that talking actors
  don't drag their speech subtitles with them just because they're moving
  and talking at the same time. (Could this also be useful for non-actor
  speech?) If the actor has multiple strings, the coordinates are updated
  for each new string.

* Made speechColor and outlineCoor arrays so that simultaneous speech (i.e.
  where several actors are talking at the same time) multi-coloured. This
  is completely untested, though.

* Used getBlack() to get the black colour for the text outline. The
  original uses a constant, but we could always make getBlack() return
  that constant, if we want to.

svn-id: r16550
2005-01-13 07:47:04 +00:00
Torbjörn Andersson
1e499f47f2 Slight adjustment to previous commit.
svn-id: r16549
2005-01-12 12:51:56 +00:00
Torbjörn Andersson
3f211bdc32 There was a slight but noticeable pause in linked animations at the moment
it changes to the link. I'm guessing that the last frame in the animation
is identical to the first frame in the link.

The original calls SetAlarm(&deltaAlarm[i], delta->timer) between each
frame, but amends itself by calling SetAlarm(&deltaAlarm[i], 0) when the
link happens. I'm trying to simulate that effect by using 0 as frame time
instead of anim->frame_time. I think that's the right thing to do.

svn-id: r16548
2005-01-12 11:07:56 +00:00
Max Horn
2f77e27ca3 Move 'tools' related build rules into tools/module.mk; fixed remainder of bug #1100125 (I hope...)
svn-id: r16547
2005-01-11 22:02:05 +00:00
Andrew Kurushin
89e6030c58 remove game.h & image.h
svn-id: r16546
2005-01-11 21:19:53 +00:00
Andrew Kurushin
244b227b19 - remove game.h & image.h
- all display information of current game goes to SagaEngine
- remove GameFontIds
- hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType()

svn-id: r16545
2005-01-11 21:10:36 +00:00
Max Horn
f1026ce3eb Partial fix for bug #1100125
svn-id: r16544
2005-01-11 20:40:10 +00:00
Andrew Kurushin
f17f5e3cae last wjp suggested patch - helps reenable "no definition for inline function" warning
svn-id: r16543
2005-01-11 20:02:12 +00:00
Torbjörn Andersson
d429502d29 Make voicess.res the first IHNM voice file, since that's the one that's
used in the intro. That way, if the IHNM demo plays an intro we'll use the
first voice file both for the demo and the full game.

Eventually we'll need to implement switching between different voice files,
of course, but that can wait.

svn-id: r16542
2005-01-11 19:40:17 +00:00
Torbjörn Andersson
4dda4eb31b On Fingolfin's suggestion I put back the inclusion of util.h into Rect, for
MIN() and MAX(). I then removed util.h from a bunch of files which I don't
think need it any more. (Please let me know if I got too blood-thirsty!)

This reverts some of the changes I made this morning.

svn-id: r16541
2005-01-11 13:25:02 +00:00
Torbjörn Andersson
c5e83de099 Use Fingolfin's new WAV code.
svn-id: r16540
2005-01-11 08:32:10 +00:00
Torbjörn Andersson
9eecc9406d 16-bit WAVs are little-endian.
svn-id: r16539
2005-01-11 08:30:28 +00:00
Torbjörn Andersson
13e2c224c8 This is probably not the optimal fix, but at least ScummVM compiles again.
svn-id: r16538
2005-01-11 08:06:19 +00:00
Eugene Sandulenko
872a032ee9 Update SAGA items
svn-id: r16537
2005-01-11 00:54:08 +00:00
Eugene Sandulenko
133ff34cb4 o All fonts were mapped. Introduced new FONT_DONTMAP flag
o Implemented and tested converse drawing. Still some features like
  arrows and hardcoded values are present, and it is not used in scripts

svn-id: r16536
2005-01-11 00:51:58 +00:00
Eugene Sandulenko
2dd88384a1 Maybe I added wrong include, but at least it let me compile
svn-id: r16535
2005-01-11 00:49:56 +00:00
Max Horn
ec79a9a768 A little more moving around #include's (last one for today ;-)
svn-id: r16534
2005-01-10 22:51:42 +00:00
Eugene Sandulenko
df7f9eb182 Untested converse. Drawing isn't possible due to lack of needed information
in ITE_interface structure.

svn-id: r16533
2005-01-10 22:51:01 +00:00
Max Horn
f030081647 eek, we put a static RandomSource instance into every file that included fmopl.h...
svn-id: r16532
2005-01-10 22:46:23 +00:00
Max Horn
f3f1d6be87 Legal header
svn-id: r16531
2005-01-10 22:43:21 +00:00
Max Horn
5c48717dd2 Remove some more header dependencies
svn-id: r16530
2005-01-10 22:35:43 +00:00