aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
AgeCommit message (Collapse)Author
2003-07-04added some very limited support for Mac Loom (text is now properly centered ↵Max Horn
around x:160 instead of x:0); added (commented out) copyprot bypass (but since I am not sure if there was ever a Mac Loom w/o codes, am not sure if this ever should be enabled); added comment regarding the Mac Loom sound format svn-id: r8737
2003-06-25added some const qualifiers; moved _bundle & _current_cd_sound from class ↵Max Horn
Scumm to class Sound; some other tweaks svn-id: r8648
2003-06-25cleanupMax Horn
svn-id: r8647
2003-06-16After some consideration, I've reverted to the old Loom bypassing schemeTorbjörn Andersson
since I now believe that the variable is used to indicate that the game is running in "demo" mode. This way, old savegames will still work. The new bypassing scheme is still in the file, but commented out. If this works, we can remove it completely later. svn-id: r8515
2003-06-16The code to bypass the EGA Loom copy protection (which is necessary sinceTorbjörn Andersson
LucasArts have been selling cracked copies themselves) turned out to be interfering with the ability to learn the fourth note under certain conditions. I've deviced an alternative bypass which should be a great deal safer, though it won't do anything to salvage older savegames. Ironically, Endy told me recently that he didn't like the idea of basing the copy protection bypasses on the value of _currentRoom, but in this case I really don't have any better idea. svn-id: r8513
2003-06-14runHook -> runInventoryScript, VAR_HOOK_SCRIPT -> VAR_INVENTORY_SCRIPTMax Horn
svn-id: r8468
2003-06-12Fixed MSVC warningJamieson Christian
svn-id: r8449
2003-06-12rework loom subtitle option handingJonathan Gray
svn-id: r8448
2003-06-07follow our coding conventionsMax Horn
svn-id: r8377
2003-06-07replaced GF_AFTER with _versionMax Horn
svn-id: r8372
2003-06-02Clean up debugger Restart function and move to SCUMM restart functionJames Brown
svn-id: r8263
2003-06-01Reversing for the time beingNicolas Bacca
svn-id: r8231
2003-06-01Bypass Sam & Max floppy copy protectionNicolas Bacca
svn-id: r8230
2003-05-31cleanupMax Horn
svn-id: r8169
2003-05-29fixed V2 script freezing (bug #745421)Max Horn
svn-id: r8086
2003-05-28const as const can!Max Horn
svn-id: r8058
2003-05-24this change seems to be 'logical', but could be wrong; would be nice to ↵Max Horn
check the assembly... svn-id: r7893
2003-05-23bypass for Zak256 copy protection (can't test this right now, though)Max Horn
svn-id: r7870
2003-05-22restricted getObjectIndex to only search thru _objs, not _inventory(to avoid ↵Max Horn
future confusion), this might cause regressions, though; fixed o2_getObjPreposition; adapted some code to the changed getObjectIndex svn-id: r7829
2003-05-22from the MM/Zak scripts, the code etc. it's clear that unk2 is the sentence ↵Max Horn
preposition svn-id: r7827
2003-05-21cleaned up V2 input codeMax Horn
svn-id: r7811
2003-05-21cutscene override fix for V3 games (bug #731985)Max Horn
svn-id: r7809
2003-05-21added v2 cutscene support (not quite complete; and crashes at some point in ↵Max Horn
maniac because VAR_EGO contains a bogus value); cleanup svn-id: r7781
2003-05-20renamed various things for clarityMax Horn
svn-id: r7754
2003-05-20added enum's for the known actor/object claasses; extended putClass/getClass ↵Max Horn
to translate the X/Y flip classes; made code use the new enum's; some other cleanup svn-id: r7753
2003-05-20cleanupMax Horn
svn-id: r7738
2003-05-19renamed ScriptSlot::unk1/unk2 to freezeResistant/recursiveMax Horn
svn-id: r7688
2003-05-18more cleanupMax Horn
svn-id: r7653
2003-05-18oopsMax Horn
svn-id: r7649
2003-05-18cleanupMax Horn
svn-id: r7646
2003-05-18consistently index script slots with index 0 (not 1); this fixes bug ↵Max Horn
#739463; made stopScriptNr match stopObjectScript more closely (we could merge them into one function one day) svn-id: r7645
2003-05-17yet another V2 sentence fix (now clicking on objects in Zak causes Zak to ↵Max Horn
talk to it - but he gets stuck after some time) svn-id: r7613
2003-05-17Move some hacks aroundJames Brown
svn-id: r7600
2003-05-17Fix invalid variableJames Brown
svn-id: r7599
2003-05-16fixed V2 verb scriptsMax Horn
svn-id: r7570
2003-05-16SentenceTab unk4/unk3 are the sentence objects (think of: 'Use objectA with ↵Max Horn
objectB' or 'Give objectA to objectB' etc.); added a little more V2 sentence hackery; added a FIXME regarding some strange sentence code (accessing objectB before it is set) in script.cpp svn-id: r7562
2003-05-16hackish partial doSentence supportMax Horn
svn-id: r7560
2003-05-15moved drawBox to gfx.cpp (seems to be the more logical location)Max Horn
svn-id: r7554
2003-05-15fixed / cleaned up drawBoxMax Horn
svn-id: r7553
2003-05-10renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and ↵Max Horn
_realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive) svn-id: r7423
2003-05-08yet more v2 var fixesMax Horn
svn-id: r7397
2003-05-08fixed various cases of bad var accessMax Horn
svn-id: r7394
2003-05-08init all VAR_* variables to 0xFF; replaced access to _vars in the form ↵Max Horn
_vars[VAR_*] by VARS(VAR_*) which performs a validity checK; renamed _vars to _scummVars to make sure I updated all places; fixed two places where V6 and newer games would access V5 vars (but there are still some left, it seems); checked VAR access for now only generates a warning svn-id: r7393
2003-05-08some V2 fixes (we really really need to revise the _vars handling!)Max Horn
svn-id: r7392
2003-05-05cleanup / reduced code duplicationMax Horn
svn-id: r7339
2003-05-04cleanupMax Horn
svn-id: r7313
2003-05-04correctionJonathan Gray
svn-id: r7312
2003-05-04don't know why this was removed but it breaks several games making it for ↵Jonathan Gray
all non v2 games svn-id: r7311
2003-05-04yet more v2 fixes & cleanupMax Horn
svn-id: r7302
2003-05-04more v2 fixes; cleanupMax Horn
svn-id: r7301