Commit Graph

16378 Commits

Author SHA1 Message Date
Max Horn
49448af6cb AGI: Turn some more AGI static functions into AgiEngine methods
svn-id: r50127
2010-06-21 21:34:06 +00:00
Max Horn
c7a9865a73 AGI: Change a static var to member var AgiEngine::_lastTickTimer
svn-id: r50126
2010-06-21 21:33:45 +00:00
Max Horn
e7da62763e AGI: Turn timerHack and curLogic into AgiEngine members; get rid of some #defines
svn-id: r50125
2010-06-21 21:33:22 +00:00
Max Horn
df569a6c82 AGI: Change AGI commands/opcodes to member methods
svn-id: r50124
2010-06-21 21:32:56 +00:00
Filippos Karapetis
9d5d9e13ae Fixed the demo of Hoyle 4 by adding two selectors it needs "syncTime" and "syncCue". Usually, games that need them are CD talkie versions which have a selector vocabulary, but Hoyle 4 is an exception
svn-id: r50122
2010-06-21 21:25:13 +00:00
Filippos Karapetis
97dd94019c When loading or restarting, stop script processing if the game is being loaded or is restarting and the stack position has changed (it's always changed when loading) - fixes the case where the VM is trying to parse an invalid script
svn-id: r50121
2010-06-21 20:17:59 +00:00
Torbjörn Andersson
38b172e8e5 Fixed some Cppcheck warnings. (There are plenty left, if anyone's wondering.)
svn-id: r50120
2010-06-21 19:32:25 +00:00
Matthew Hoops
0ab7a16e45 Fix the Hoyle 4 (Hoyle Classic) demo's top offset. It currently errors out later from lacking a selector (static selector problem).
svn-id: r50118
2010-06-21 19:07:41 +00:00
Matthew Hoops
9ecbffe11a Add a workaround for a MUMG script bug, MUMG now works again.
svn-id: r50117
2010-06-21 15:51:04 +00:00
Martin Kiewitz
4a4fcb19dd SCI: added fixme about r50110/r50073
svn-id: r50115
2010-06-21 15:05:48 +00:00
Matthew Hoops
faef4ab349 Check against the signature of Groovie v2 cursors with MKID_BE, makes it easier to see what it's doing.
svn-id: r50114
2010-06-21 14:44:18 +00:00
Martin Kiewitz
cfcf53bec0 SCI: fix regression of r50073, allNotesOff() now directly sends to driver again. If we send to queue, queue will never actually get processed and even if it was, the channels wouldnt be mapped anymore anyway
svn-id: r50110
2010-06-21 10:51:14 +00:00
Martin Kiewitz
8fce660090 SCI: also set throttle trigger on kPalette(animate)
svn-id: r50109
2010-06-21 10:40:48 +00:00
Martin Kiewitz
98196b8af6 SCI: GfxPalette::kernelSetIntensity() now also triggers throttler - somewhat "fixes" lb2cd when selecting play game
svn-id: r50108
2010-06-21 10:14:04 +00:00
Matthew Hoops
473ae1c11e Cleaner fix for the QFG4 demo audio map problem.
svn-id: r50104
2010-06-20 23:41:54 +00:00
Matthew Hoops
72534afea9 Ignore the broken 65535x.map file in the QFG4 demo, mistakenly picked up when checking for patches. Audio now works there.
svn-id: r50102
2010-06-20 22:30:20 +00:00
Martin Kiewitz
7694993bef SCI: fixed typo
svn-id: r50101
2010-06-20 21:14:46 +00:00
Martin Kiewitz
6f195ae5a4 SCI: implemented kPalVary(changeTicks)
svn-id: r50100
2010-06-20 21:12:15 +00:00
Martin Kiewitz
4a83b2c5f6 SCI: properly implement kPalVary functionality within kDrawPic and transitions, so pharkas finally works w/o palette corruption
svn-id: r50099
2010-06-20 20:52:31 +00:00
Martin Kiewitz
66b9eaac34 SCI: adding timestamp update for frameout, fixes gk1 windows main menu
svn-id: r50094
2010-06-20 20:09:07 +00:00
Martin Kiewitz
3a9217dd5a SCI: disable palvary when reverse is fully done - fixes palette getting stuck in pharkas (the broken palette in there is actually not caused by palvary, it was just overwritten before by view palette updates and those dont occur when palvary is active)
svn-id: r50093
2010-06-20 20:05:00 +00:00
Martin Kiewitz
a22e294ca6 SCI: displaying debug warning again for kPalVary(init)
svn-id: r50092
2010-06-20 19:39:08 +00:00
Martin Kiewitz
d37a25cfee SCI: cleanup of SciPalette
svn-id: r50091
2010-06-20 19:18:33 +00:00
Martin Kiewitz
05e2bbcc33 SCI: dont display string set by kSetQuitStr
svn-id: r50090
2010-06-20 18:22:49 +00:00
Martin Kiewitz
3c6639eb86 SCI: implemented kPalVary(reverse) for pharkas, although there is a bug somewhere, not working 100%
svn-id: r50089
2010-06-20 18:20:05 +00:00
Matthew Hoops
ff785325ad Sort planes in kFrameOut by priority and keep plane/item priority separate as they represent two different things. Fixes various SCI32 graphical glitches. Most (all?) remaining glitches are because we don't yet handle kSignalFixedPriority.
svn-id: r50087
2010-06-20 17:17:46 +00:00
Martin Kiewitz
bb1358ae3b SCI: adding info about kPalVary(8) being SCI32 exclusive
svn-id: r50086
2010-06-20 17:14:58 +00:00
Martin Kiewitz
7ecff0a300 SCI: implementing kPalVary(2)
svn-id: r50085
2010-06-20 17:08:39 +00:00
Martin Kiewitz
e8262d989e SCI: adding code for kPalVary ticks == 0 case, fixes pharkas
svn-id: r50084
2010-06-20 16:48:52 +00:00
Martin Kiewitz
8fcb14d235 SCI: adding kPalVary update call to kFrameout - it's getting morning now in gabriel knight 1
svn-id: r50083
2010-06-20 16:36:34 +00:00
Martin Kiewitz
b016c16300 SCI: some kPalVary support - intro of island dr. brain works fine now
svn-id: r50082
2010-06-20 16:31:24 +00:00
Martin Kiewitz
7ce739f51b SCI: kPalVary - cleanup and some more code
svn-id: r50081
2010-06-20 15:01:31 +00:00
Martin Kiewitz
15ae4d8f59 SCI: fix r50078, we need to update timestamp for inbetween SCI1.1 games, but not on kPortrait palette changes
svn-id: r50079
2010-06-20 13:38:24 +00:00
Martin Kiewitz
d2a3f59bfb SCI: update timestamp like before for inbetween SCI1.1 games
svn-id: r50078
2010-06-20 13:30:40 +00:00
Martin Kiewitz
30f6e7824b SCI: update sys palette timestamp only on kDrawPic in SCI1.1, fixes intro of island of dr. brain
svn-id: r50077
2010-06-20 13:25:08 +00:00
Martin Kiewitz
871c9bddde SCI: removing unneeded parameters inside SciPalette, cleanup of SciPalette
svn-id: r50076
2010-06-20 13:15:45 +00:00
Martin Kiewitz
daf1429ca2 SCI: implementing reading of parameters for kPalVary(init) for argc 4 and argc 5
svn-id: r50075
2010-06-20 12:38:08 +00:00
Martin Kiewitz
36ca2ce421 SCI: some cleanup for kPalVary
svn-id: r50074
2010-06-20 12:21:57 +00:00
Martin Kiewitz
81f64c9e3e SCI: storing all manual midi commands now and actually sending them to driver during onTimer() - fixes mt32 emulation crashing during lsl5 piano scene
svn-id: r50073
2010-06-20 10:25:46 +00:00
Torbjörn Andersson
41990883bf Don't go into "menu input mode" unless the game currently allows the menus to
be displayed. I hope this is the correct fix to keep Police Quest 1 from
hanging if you press Escape while reading the newspaper in the briefing room.

svn-id: r50072
2010-06-20 09:51:11 +00:00
Paul Gilbert
110e03c87b Removed unused variables
svn-id: r50071
2010-06-20 07:06:22 +00:00
Paul Gilbert
fcdb7807a4 Implemented explicit transparency index support - the previous hardcoded index of 0 wasn't correct, since some sprites need that index
svn-id: r50070
2010-06-20 07:04:58 +00:00
Paul Gilbert
d6cd656f15 Added support for the alternate encoding for depth surfaces
svn-id: r50069
2010-06-20 05:25:34 +00:00
Martin Kiewitz
87132bd411 SCI: changing error to warning in ResMan::detectViewType()
svn-id: r50067
2010-06-19 22:14:15 +00:00
Martin Kiewitz
b0a36849da SCI: locking _mutex inside SciMusic::sendMidiCommand(MusicEntry *pSnd, uint32 cmd)
svn-id: r50065
2010-06-19 21:15:58 +00:00
Martin Kiewitz
ef67a37b54 SCI: fixing last uninitialized variable issue in MidiParser_SCI (hopefully)
svn-id: r50063
2010-06-19 20:37:53 +00:00
Martin Kiewitz
f3b8a5927d SCI: fixing another uninitialized variable usage issue - also limiting reset velocity to used channels only, same is true for setting voice count
svn-id: r50062
2010-06-19 20:23:55 +00:00
Martin Kiewitz
089f5bba14 SCI: stopping scripts from sending to unused channels manually (fixes sq1vga)
svn-id: r50060
2010-06-19 20:00:32 +00:00
Martin Kiewitz
24459b5842 SCI: reverting r50058 - we can't actually send to the channels at that time, because we do not own the channels at that point
svn-id: r50059
2010-06-19 19:47:22 +00:00
Martin Kiewitz
a845e8b859 SCI: move setVolume down inside loadMusic so that it actually affects the used channels
svn-id: r50058
2010-06-19 19:39:36 +00:00