aboutsummaryrefslogtreecommitdiff
path: root/engines
AgeCommit message (Collapse)Author
2006-03-16More cleanups and renamings: _sfxSecondByteOfSong -> _sfxPriorityTorbjörn Andersson
Added some comments on the strange but probably harmless things going on in playSoundEffect() svn-id: r21340
2006-03-16Went through callbacks 51, 52 and 53, comparing them to LordHoto's annotatedTorbjörn Andersson
disassembly. I think they're correct now, and a bit easier to read. My old comments were wrong, too. I think they are for manipulating the Adlib rhythm section volumes. I'm not sure the Kyra music ever uses the Adlib rhythm section. svn-id: r21339
2006-03-16- added defines to handle the different mouse cursorsGregory Montoir
- revised the way NUM_MAX_PARTDATA and NUM_MAX_ANIMDATA are used - renamed some variables - constify'ed function arguments - minor cleanup svn-id: r21338
2006-03-16We have several functions where we need to find the pointer to a program or anTorbjörn Andersson
instrument. These are found using the lookup tables in _soundData on offsets 0 and 500 respectively. Added helper functions for that, which makes the code a lot tidier. Particularly in update_setupRhythmSection(), where it's now much clearer where it's getting all those "unk" values from. Use the checkValue() function (which limits the "total level" to its valid range) for the calculateOpLevel1() and 2() functions as well. Renamed updateCallback16() to update_waitForEndOfProgram(). svn-id: r21337
2006-03-16More renamings:Torbjörn Andersson
callbackOutput() -> setupPrograms() callbackProcess() -> executePrograms() updateCallback3() -> update_setupProgram() _unk4 -> _rhythmSection updateCallback48() -> update_setupRhythmSection() updateCallback49() -> update_playRhythmSection() updateCallback50() -> update_removeRhythmSection() svn-id: r21336
2006-03-16I don't know if it's our bug, or a bug in the original Kyra music driver, butTorbjörn Andersson
updateCallback3() would call unkOutput2(9) in at least one case. This is obviously wrong because it a) reads outside _regOffsets[], and b) writes to invalid Adlib registers. Now unkOutput2() has the same safeguards as noteOff() already had, making callbackOutput() and updateCallback3() even more similar. svn-id: r21335
2006-03-16Oops. removes some unneeded shifts and fixes now the feather bug.Johannes Schickel
svn-id: r21334
2006-03-16Fixed some comments and made a couple of cleanups to make it a bit more clearTorbjörn Andersson
just how similar callbackOutput() and updateCallback3() are. svn-id: r21333
2006-03-16- Fixes some gfx glitches (the falling feather and the falling leaf now have ↵Johannes Schickel
correct restored background) - Fixes brandon width value after loading (removes gfx glitch while talking with the tree) svn-id: r21332
2006-03-16Minor cleanupTravis Howell
svn-id: r21331
2006-03-16Update comment, to make senseTravis Howell
svn-id: r21330
2006-03-16Add comment about future saveLoad changes C64 maniacTravis Howell
svn-id: r21329
2006-03-16CleanupTravis Howell
svn-id: r21328
2006-03-16CleanupTravis Howell
svn-id: r21327
2006-03-16Remove duplicate fcs fieldTravis Howell
svn-id: r21326
2006-03-16Rename get draw buffer functionsTravis Howell
svn-id: r21325
2006-03-16Rename flags used for drawing imagesTravis Howell
svn-id: r21324
2006-03-16Remove unused unlock draw surface functionsTravis Howell
svn-id: r21323
2006-03-16Add scaling code stub for FFTravis Howell
svn-id: r21322
2006-03-15added mouse cursorsGregory Montoir
svn-id: r21321
2006-03-15- removes a wrong space in debugC calls in screen.cppJohannes Schickel
- implements cmd_brandonToStoneSequence and cmd_pauseMusicSeconds svn-id: r21320
2006-03-15Fixed typo in debug message.Torbjörn Andersson
svn-id: r21317
2006-03-15This is a bit of a hack: Before showing the mouse cursor, take care of anyTorbjörn Andersson
pending events so that the it won't have to do a little dance, catching up, every time you enter a room. svn-id: r21316
2006-03-15On second thought, that comment is probably not necessary.Torbjörn Andersson
svn-id: r21315
2006-03-15Added mouse wheel scrolling to save/restore dialogs.Torbjörn Andersson
svn-id: r21314
2006-03-15Revert previous change. I'm told some backends don't draw the mouse cursorTorbjörn Andersson
automatically, for some reason. svn-id: r21312
2006-03-15The backend handled cursor drawing -- no need to update the screen manually.Torbjörn Andersson
svn-id: r21311
2006-03-15In progress work on disassembling player tick/actions handler methodPaul Gilbert
svn-id: r21310
2006-03-15Correct VAR_OVERRIDE settings in override opcodesTravis Howell
svn-id: r21307
2006-03-15Minor cleanupTravis Howell
svn-id: r21306
2006-03-14Cleanup.Torbjörn Andersson
svn-id: r21304
2006-03-14Gave the loadBitmap debug message its old debug level back. (I.e. made it lessTorbjörn Andersson
noisy.) svn-id: r21303
2006-03-14Added workaround in FMOPL for the pathological case where a note was turned offTorbjörn Andersson
while still at the very beginning of the "attack" phase. This is the very lowest point on the attack curve, yet it would continue from the beginning of the release curve, i.e. its very highest point. This is what caused Kyra to often play low-frequency notes at the very beginning of a new song. (That, and a truly bizarre function for initialising the channels.) The proper fix would be to locate the correct point on the release curve and continue from there. For now, though, only handle the trivial case. svn-id: r21302
2006-03-14- Deletes wrong spaces in debugC calls in resource.cppJohannes Schickel
- Adds support for amiga .pak files (and a filelist) svn-id: r21299
2006-03-14Fix typo in comment.Torbjörn Andersson
svn-id: r21298
2006-03-14To the best of my knowledge, it's really 'C64' and not 'C-64'Max Horn
svn-id: r21296
2006-03-14Merged two consecutive 'if's with identical conditionMax Horn
svn-id: r21295
2006-03-14- Fixes a bug in update_primaryEffect (wrong sound from the birds outside ↵Johannes Schickel
brandons home is fixed with this) - Changes _tempo, tempo, position, unk41, unk32, unk18, unk19, _unkValue3 to unsigned (should be correct this time) svn-id: r21293
2006-03-14Fixes wrong sound then showing the death screen.Johannes Schickel
svn-id: r21290
2006-03-14Update comment about use of procC64 by C-64 versionTravis Howell
svn-id: r21289
2006-03-14Renamed & documented the LIGHTMODE flagsMax Horn
svn-id: r21288
2006-03-14Fixes _unkTables, I made a mistake while extracting those last time it seems.Johannes Schickel
svn-id: r21287
2006-03-14Enhance the new getCurrentLights to work for V6+ games, too, making it ↵Max Horn
possible to remove several special cases throughout the code svn-id: r21286
2006-03-14Compute the full game title when detecting games & creating engine ↵Max Horn
instances, and also use that for savegames (all for debugging) svn-id: r21285
2006-03-14Add a virtual destructor to class SoundDriver of the CINE engine (fixes a ↵Max Horn
warning) svn-id: r21284
2006-03-14An actor is completely reset by showActor() in SCUMM1-2 games. Fixes bug #902391Travis Howell
svn-id: r21283
2006-03-14Remove unused var, to prevent compiler warningTravis Howell
svn-id: r21281
2006-03-14Remove unused vars, to prevent compiler warningsTravis Howell
svn-id: r21279
2006-03-14Adjust one last spot, for previous VAR_CURRENT_LIGHTS changesTravis Howell
svn-id: r21278
2006-03-14Avoid all scumm var conflicts in C64 maniacTravis Howell
svn-id: r21277