861 Commits

Author SHA1 Message Date
Torbjörn Andersson
f8981765e9 Cleaned up some cursor show/hide handling. This should fix bug #1333391.
svn-id: r19239
2005-10-22 12:47:09 +00:00
Andrew Kurushin
37660b0b0a add workaround for bug #1328045
svn-id: r19216
2005-10-21 14:30:11 +00:00
Eugene Sandulenko
4306c9344c Improved IMA ADPCM decoder. It appeared that MS violated yet another standard
and nibbles order in samples appeared to be swapped. Had to untemplate
whole thing over again because I have no idea how to speicalize one of two
parameters in templates.

Now voices are clean but have some ticks, looks like overload. ITE wasn't
broken ;)

svn-id: r19166
2005-10-19 04:59:18 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Eugene Sandulenko
8fc363482d Added French and Russian md5s for IHNM submitted in bugreports
#1328019 "IHNM: French MD5s" and #1094819 "IHNMAIMS: md5's of my cd version"
respectively

svn-id: r19139
2005-10-17 16:28:33 +00:00
Eugene Sandulenko
b4a4f779e3 Fix walking in IHNM. It appeared that BG mask wasn't flipped upside down
when everything else is :).

svn-id: r19136
2005-10-17 14:20:18 +00:00
Eugene Sandulenko
ee4cbcb98d Fix bug #1326833 "ITE: Missing copy protection". Though it is disabled
by default by kind permission from Wyrmkeep Entertainment Co.

svn-id: r19125
2005-10-17 03:28:21 +00:00
Eugene Sandulenko
1529b1ad0a Store game title in savefile. Lets us not guess which game save is made for
as it is not possible to tell that by md5. Bumbed savegame version.

svn-id: r19113
2005-10-16 17:19:52 +00:00
Eugene Sandulenko
68c5fe52c2 Err.. Now really fix game detection. Not that it was wrong, but I forgot
to remove old leftover which plainly overewrote all those sophisticated
checks.

svn-id: r19112
2005-10-16 16:50:05 +00:00
Torbjörn Andersson
80fd4fe088 Turned on the automatic computation of dirty rects for ITE. It should make
it less of a CPU hog for 0.8.0, but I hope we'll be able to fix it properly
for later versions.

svn-id: r19083
2005-10-14 15:15:52 +00:00
Eugene Sandulenko
7f6402ef06 Eliminate ite-demo and ihnm-demo targets as we do in SAGA. Just use plain
ite and ihnm respectively. Sorry, but I had to do it before release, no
autoupgrade as games weren't supported only in developer's version.

Fix bug #1297365 "ITE: Game detection is broken".

Now it distinguishes between DOS CD and Win CD, though it uses platform and
language settings from .ini to do the choice. I.e current games need to be
redetected. Though only these 2 games are affected. I.e. they have exactly
same resource files, just Windows release adds up external patches. These
patches cannot be added to detection as they're stored in subdirectories.

Also I resolved problem between ite-demo-win and ite-demo-linux where latter
is a superset of former. I.e. it has all files which win demo has plus one
additional. And if you try to detect Linux demo it shows you both. Of course
this could be handled by upper solution, but to make sure I count number of
required files for matched versions and remove those which do not have max
number of files. I.e. if 2 games matched and one requires 4 and another one
requires 5 files, then we have 5 files matched which certainly points to
second game not the first.

svn-id: r19074
2005-10-14 04:28:20 +00:00
Eugene Sandulenko
a3d0fcea54 Add language and platform to game description and use that accross the source.
That eliminates GF_LANG_DE and GF_MAC_RESOURCES.

svn-id: r19071
2005-10-14 00:56:52 +00:00
Andrew Kurushin
961cd63ae9 fix #1324803 ITE: Freeze during storm
svn-id: r19035
2005-10-12 17:56:07 +00:00
Torbjörn Andersson
744a01b449 Looks like my pitch wheel change still has the ability to break things. See
bug #1324103.

I've changed it - again - so that now it only centers the pitch wheels on
unload if a new mpCenterPitchWheelOnUnload property has been set. Currently
only the SAGA engine does that, so if it still breaks it only breaks SAGA.

I've also fixed what looked like an unintentional fall-through in the
MidiParser::property() function. Surently that can't cause any new
regressions? Please.

svn-id: r19032
2005-10-12 06:57:25 +00:00
Torbjörn Andersson
ad8a71783a This is an attempt to fix the actor frames in IHNM. It appears to be at
least partially successful.

svn-id: r19025
2005-10-11 18:11:58 +00:00
Torbjörn Andersson
e44213c832 Cleanups. Mostly whitespace.
svn-id: r19022
2005-10-11 17:39:31 +00:00
Torbjörn Andersson
f405adae1f This should ensure that savegames are endian-safe. Unfortunately, I've just
broken any old savegame made on a big-endian machine. Oh well, better now
than after 0.8.0 ...

svn-id: r19021
2005-10-11 17:20:30 +00:00
Torbjörn Andersson
db4308d60b Rewrote some code that didn't look alignment safe to me.
svn-id: r19020
2005-10-11 14:03:36 +00:00
Torbjörn Andersson
b7e62ffb18 Fix stack underflow when Gorrister examines the mirror in IHNM. opReturnV
was popping *twice* the number of parameters that had originally been
pushed.

This appears to have been a bug in the ITE floppy version as well; one that
was fixed in the CD version.

At least that's how I understand it.

svn-id: r19017
2005-10-11 13:23:47 +00:00
Torbjörn Andersson
2a562aa8ad I was going to fix the IHNM sprite loader, but when I got here this morning
sev had already done that. All that was left for me was this final bit of
cleanup. :-)

svn-id: r19014
2005-10-11 06:08:42 +00:00
Eugene Sandulenko
618a50cec0 Do not draw status text during chapter selection
svn-id: r19013
2005-10-11 02:51:17 +00:00
Eugene Sandulenko
cfd74f19ad oops.
svn-id: r19012
2005-10-11 02:44:25 +00:00
Eugene Sandulenko
f715044e4e Some IHNM changes:
o Fix status text color. (Though text is all ITE-specific)
  o Enable inventory drawing
  o Load inventory sprites
  o Hid now unneeded actor loading debug output

svn-id: r19011
2005-10-11 02:22:53 +00:00
Eugene Sandulenko
02bcf56072 Fixed sprite loading. Now that ugly hack is gone, no wrong reads and every
chapter is selectable without crash. As a side effect all buttons now have
correct backgrounds ;).

svn-id: r19010
2005-10-11 01:42:21 +00:00
Eugene Sandulenko
54449c920b Fix portrait color. I just missed dependency from barometer.
svn-id: r19009
2005-10-11 01:00:56 +00:00
Eugene Sandulenko
7f11a7032c Adjust save reminder position
svn-id: r19007
2005-10-10 23:28:22 +00:00
Torbjörn Andersson
6ce32fd4a5 IHNM verb panel fixes:
* Verb buttons and texts are drawn at the correct coordinates. I've
  compared it to the screenshot on Mobygames.
* Verb text is drawn without shadow.
* The "Walk to", "Look at", "Take" and "Use" buttons all have the correct
  background. For some reason, I can't find the sprites for the remaining
  four buttons.

svn-id: r19004
2005-10-10 17:23:28 +00:00
Torbjörn Andersson
24202dea85 The demo resources list looked incomplete to me. Can anyone check if this
works?

svn-id: r19003
2005-10-10 15:48:15 +00:00
Torbjörn Andersson
832047efc9 Draw the IHNM portrait on the right coordinates.
svn-id: r19002
2005-10-10 15:31:42 +00:00
Travis Howell
bbb1bee568 Add defines for DOS demo resource numbers.
svn-id: r19001
2005-10-10 13:05:09 +00:00
Eugene Sandulenko
4158aa2070 First attempt to run DOS ITE demo
svn-id: r19000
2005-10-10 12:46:26 +00:00
Eugene Sandulenko
836ed9c9e0 Oops. Fix debug leftover.
svn-id: r18997
2005-10-10 02:48:23 +00:00
Eugene Sandulenko
fe88687ce7 Show save reminder in IHNM correctly.
svn-id: r18996
2005-10-10 02:42:50 +00:00
Eugene Sandulenko
b5b6b6ebb7 Eliminate font substitution ugliness.
svn-id: r18995
2005-10-10 02:09:08 +00:00
Eugene Sandulenko
fc11b60674 Draw main panel. Buttons lack backgorunds and save reminder is buggy atm.
svn-id: r18994
2005-10-10 02:02:58 +00:00
Torbjörn Andersson
c79dcadcc0 Apparently, the IHNM crosshair cursor, and the cursor hotspot, are both
hard-coded.

svn-id: r18993
2005-10-09 19:43:15 +00:00
Torbjörn Andersson
e330793547 Added optional parameter to setCursor() to specify which type of cursor you
want. ITE has only one cursor, so in that case the parameter is ignored,
and IHNM currently always gets the hourglass cursor. So it could be
improved. Lots. :-)

svn-id: r18992
2005-10-09 19:10:59 +00:00
Eugene Sandulenko
1e286ca84f Specify some image resources.
svn-id: r18991
2005-10-09 19:00:14 +00:00
Torbjörn Andersson
3568b14a21 Removed TODO comment about actor strings loading.
svn-id: r18990
2005-10-09 16:25:47 +00:00
Eugene Sandulenko
d67009d5e5 Restore cursor after boss key.
svn-id: r18986
2005-10-09 03:45:16 +00:00
Eugene Sandulenko
c11575c99c Boss key like in original. Press F9. Palette seems to be wrong though and
cursor does not reappear.

svn-id: r18985
2005-10-09 03:35:45 +00:00
Eugene Sandulenko
6cd35f7507 Now load actors only on demand. That lets select Nimdok (doctor) part. Just
click on him and move mouse away quickly, so it will not try to get actor's
name which is broken ATM.

svn-id: r18984
2005-10-09 01:43:08 +00:00
Eugene Sandulenko
d972e948c3 Simplified handleChapterSelectionUpdate()
svn-id: r18983
2005-10-09 01:20:46 +00:00
Eugene Sandulenko
d02c35c821 (more) Proper implementation of ChapterSelection panel. Though not all
functionality is implemented but it is enough for now. Lets select any
character.

svn-id: r18982
2005-10-09 01:18:26 +00:00
Torbjörn Andersson
18d33dc078 Read IHNM actor and object strings from the resource file. (This does not
keep whichObject() from crashing, but I don't know why.)

svn-id: r18980
2005-10-08 22:09:21 +00:00
Torbjörn Andersson
da43d814cd Oops, made a typo when rewriting that comment.
svn-id: r18973
2005-10-08 21:33:31 +00:00
Torbjörn Andersson
60b85c5137 Cleanup.
svn-id: r18972
2005-10-08 21:28:14 +00:00
Eugene Sandulenko
f5f57c9a23 Put actors on the ground. No more upside down. Though probably drawClip()
has to be fixed too, but now we have no test case for this.

svn-id: r18966
2005-10-08 20:09:00 +00:00
Eugene Sandulenko
46660feeb2 Quick and dirty hack to enable actors interaction. Still have to compare
that with disasm.

svn-id: r18965
2005-10-08 19:53:38 +00:00
Eugene Sandulenko
528d2b2ca1 Now most artefacts are gone and we're in proper panel mode when running
character selection.

svn-id: r18961
2005-10-08 16:25:18 +00:00