Commit Graph

212 Commits

Author SHA1 Message Date
Lars Persson
dad7ee3e2f Add PACK macros to structs for it to work on all platforms
svn-id: r21009
2006-03-02 10:52:27 +00:00
Travis Howell
949057f790 Add sentence line to C64 maniac
svn-id: r21007
2006-03-02 10:31:11 +00:00
Max Horn
f4f8a9263a Yet another patch for bug #1407789 (FT: Invalid Actor when "Combining" Two Items)
svn-id: r21006
2006-03-02 09:34:48 +00:00
Travis Howell
fec05d5180 Typos
svn-id: r21005
2006-03-02 06:33:15 +00:00
Travis Howell
64ce4d6dd7 C64 maniac uses separate bitmasks for actor settings and misc settings
svn-id: r21004
2006-03-02 06:06:24 +00:00
Travis Howell
2c9f041178 Fix inventory display in C64 maniac
svn-id: r21003
2006-03-02 05:04:40 +00:00
Travis Howell
2584f0d69f Add difference in bitVars opcodes in C64 maniac
svn-id: r21002
2006-03-02 03:31:45 +00:00
Travis Howell
e3a48bf276 Fix actor glitches in C64 maniac and minor cleanup
svn-id: r21001
2006-03-02 02:10:54 +00:00
Travis Howell
fd8f11f7a4 Improve input in C64 maniac
svn-id: r21000
2006-03-02 01:17:41 +00:00
Max Horn
c01ef102af Breaking cine, in the hopes that somebody will fix this obviously totally bogus code (even if that fix just means uncommenting it :)
svn-id: r20999
2006-03-02 00:50:52 +00:00
Travis Howell
7f8a8b7ffb Initialize new SCUMM vars for V1/2
svn-id: r20998
2006-03-01 22:50:16 +00:00
Travis Howell
8f76068148 Fix compile
svn-id: r20997
2006-03-01 22:36:53 +00:00
Lars Persson
d1e1f7cb5b Fix for Symbian to close an open file in the right thread
svn-id: r20996
2006-03-01 21:37:00 +00:00
Gregory Montoir
9a9475169d added 2 SCUMM vars for v1/v2.
svn-id: r20994
2006-03-01 20:07:33 +00:00
Johannes Schickel
ce63f2bc38 Oops forgot to enable music again.
svn-id: r20993
2006-03-01 18:18:16 +00:00
Johannes Schickel
730eaf2dca Added debug calls to the adlib functions, also uses mixer samplerate now.
Fixed a bug in updateCallback41.

svn-id: r20992
2006-03-01 16:44:32 +00:00
Lars Persson
0653d509d3 Updated datatypes to resolve ambiguity
svn-id: r20991
2006-03-01 14:20:40 +00:00
Torbjörn Andersson
8a60a99140 Fixed updateCallback11() according to LordHoto's directions, and renamed it
update_writeAdlib(). (The "update_" prefix will probably be changed later, but
for now I want it to remain obvious that the functions belong to the other
updateCallback*() functions.)

svn-id: r20990
2006-03-01 13:57:32 +00:00
Torbjörn Andersson
5734717f8e Renamed 'unk9' to a slightly more descriptive 'repeatCounter'. (I should have
done that in the previous commit.)

svn-id: r20987
2006-03-01 08:13:38 +00:00
Torbjörn Andersson
272a19cf5b Use signed integers for jump offsets, so that the jump opcodes can jump both
forward and backward. This seems to fix the looping of the Black forest music
(and probably others as well), and might fix the invalid pointer crashes and
wrong music that would sometimes play after a song had finished. Changed the
names of the jump opcode functions, and added "update_" prefixes to the
previously cleaned-up opcode functions.

svn-id: r20986
2006-03-01 08:06:54 +00:00
Torbjörn Andersson
3a38721d02 Cleaned up updateCallback36() and renamed it setVibratoDepth().
svn-id: r20985
2006-03-01 07:27:35 +00:00
Torbjörn Andersson
55739f1715 Cleaned up updateCallback35() and renamed it setAMDepth(). It looks like the
_unkOutputByte2 variable is there to keep track of the current value of the
BD register (AM Depth / Vibrato Depth / Rhythm)

svn-id: r20984
2006-03-01 07:21:51 +00:00
Torbjörn Andersson
90cbe402b2 Minor cleanup and comments.
svn-id: r20983
2006-03-01 06:56:53 +00:00
Travis Howell
68f289398e Remove HE specific string array from SCUMM6 table, since the value is different in some games
svn-id: r20982
2006-03-01 05:00:25 +00:00
Travis Howell
0a3b58ff2a Update string array tables and use for all possible games and strings
svn-id: r20980
2006-03-01 04:32:44 +00:00
Travis Howell
d5710033a0 Update string array table for SCUMM7
svn-id: r20979
2006-03-01 01:17:40 +00:00
Travis Howell
2892e33f1d Add comment to workaround for music in Sam & Max, based on commit log. And limit the workaround to specific game.
svn-id: r20976
2006-02-28 23:02:15 +00:00
Gregory Montoir
e4ac92c2af updated some bugs/issues comments and removed wrong 'FIXME' markers.
svn-id: r20975
2006-02-28 22:20:13 +00:00
Johannes Schickel
1e2aa59bcb Added lock() and unlock() again to readBuffer.
Implemented stateCallback1_1.
Fix some small bugs here and there (can't say what the fixed but it should be correct now)
Also set's the correct timer call value (with the other the music was too fast)

svn-id: r20973
2006-02-28 17:02:14 +00:00
Torbjörn Andersson
6ee443f316 Added some basic comments, along with some very, very minor cleanup.
svn-id: r20972
2006-02-28 15:44:39 +00:00
Torbjörn Andersson
f03958be01 Removed unnecessary line.
svn-id: r20971
2006-02-28 09:54:09 +00:00
Torbjörn Andersson
005861cb14 This may be needless paranoia, but I always get nervous about order of
evaluation when there are multiple side-effects on the same variable (in this
case the internal state modified by va_arg()) in the same expression. So let's
just humor me and do the va_arg() calls one at a time.

svn-id: r20970
2006-02-28 08:49:51 +00:00
Travis Howell
41e7bb67e4 These zakTowns specific changes aren't explained and don't match original code. If problems still occur, add bug reports with details.
svn-id: r20967
2006-02-28 01:14:02 +00:00
Travis Howell
e1d96cba87 Typo.
svn-id: r20966
2006-02-28 00:49:54 +00:00
Travis Howell
db925b310e Update code and comment for screen savers issue in Sam & Max.
svn-id: r20965
2006-02-28 00:46:05 +00:00
Johannes Schickel
2bcd6bb95e Fixes hangs in the "Pool of Sorrow" scene (at least I don't get them anymore).
svn-id: r20964
2006-02-27 23:41:27 +00:00
Travis Howell
d0bba4cb56 Typo.
svn-id: r20963
2006-02-27 23:32:59 +00:00
Travis Howell
86c913a5f4 Update comment for SO_WAIT_FOR_TURN workaround in The Dig, this is due to script bugs. SO_WAIT_FOR_TURN is never used by FT r COMI either, so remove game check.
svn-id: r20962
2006-02-27 23:25:07 +00:00
Johannes Schickel
f3106feaf5 Added WIP Adlib sound playing code to kyra.
It needs some checks since it doesn't work correctly in every case at the moment.

svn-id: r20960
2006-02-27 22:39:55 +00:00
Gregory Montoir
1b1bc9cde4 Revert the 'get rid of SO_WAIT_FOR_TURN workaround' commit but keep it specific to TheDig
svn-id: r20959
2006-02-27 22:15:21 +00:00
Gregory Montoir
0f5ef6f5b1 Get rid of the SO_WAIT_FOR_TURN hack for TheDig as the original interpreter didn't do anything special here. This will probably trigger some 'invalid actor' errors, but those are most likely caused by scripting mistakes... which should be worked around separately.
svn-id: r20958
2006-02-27 21:55:18 +00:00
Gregory Montoir
9c80770411 cleanup
svn-id: r20957
2006-02-27 21:25:59 +00:00
Travis Howell
deecb61656 Use _numStrips when checking for foreced sprite redraw, instead of set values.
svn-id: r20956
2006-02-27 12:23:34 +00:00
Travis Howell
be30d257e3 Charset 0 is loaded on start in original versions of OLD_BUNDLE games too
svn-id: r20955
2006-02-27 12:00:10 +00:00
Jamieson Christian
2469e00248 SysEx data now passed around with const pointers. Permits simplification of some SysEx client code.
Testing on Windows. Developers on other platforms, please verify integrity of music handling in your respective MidiDrivers.

svn-id: r20952
2006-02-27 01:59:07 +00:00
Jamieson Christian
52d55bf976 Removed deprecated IMUSE_DEBUG #define in favor of debugC calls using the runtime-selectable DEBUG_IMUSE category.
svn-id: r20950
2006-02-26 22:23:29 +00:00
Max Horn
52970c9936 Cleanup
svn-id: r20949
2006-02-26 21:59:44 +00:00
Max Horn
90c916de4b Do not compute the MD5 checksum if an override for it is set
svn-id: r20948
2006-02-26 21:52:49 +00:00
Paul Gilbert
dc75adbb25 Initial add of the Lure of the Temptress disassembly
svn-id: r20947
2006-02-26 21:36:33 +00:00
Torbjörn Andersson
094382a6d0 With the added delay to the popup menu loop, it's much more likely that each
iteration will see several events, so pop all events from the queue each time.
Of course, we still only need to check the mouse position once. Warp the mouse
back to neutral even if we're trying to go past the first/last menu entry.

svn-id: r20918
2006-02-26 15:24:11 +00:00