aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/script.cpp
AgeCommit message (Collapse)Author
2014-02-18TOLTECS: Make GPL headers consistent in themselves.Johannes Schickel
2013-11-24TOLTECS: Fix spacing errorsStrangerke
2013-04-26TOLTECS: Ignore invalid script opcodes (script bugs) - bug #3604025Filippos Karapetis
The original ignores invalid opcodes as well, according to johndoe
2013-03-15TOLTECS: Work around undefined subtitle behaviour at script loadingTorbjörn Andersson
It may be because of an underlying bug, but there is at least one case where a script is unloaded and replaced by another script while that script slot still has an active subtitle. This causes it to print random garbage for me, and may be causing crashes for others. I've discussed this patch with johndoe, and he was ok with it, so let's see how it works out.
2013-01-08TOLTECS: Fix script bug #3599964 - "TOLTECS: Crash when entering cave"Filippos Karapetis
2013-01-02TOLTECS: Cleanup of the script debug messagesFilippos Karapetis
2013-01-02TOLTECS: CleanupFilippos Karapetis
2012-10-06TOLTECS: Hide the mouse cursor while a movie is playing, like the originalFilippos Karapetis
Thanks to eriktorbjorn for noticing this
2012-10-06TOLTECS: Remove redundant screen updatesFilippos Karapetis
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-11TOLTECS: Open the save menu with F5 and the load menu with F9Filippos Karapetis
Also, this changes the dialog skip key to space instead of escape
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-01-29TOLTECS: Some formatting fixes.Torbjörn Andersson
2011-11-24TOLTECS: Save music in saved gamesFilippos Karapetis
Also, move all music resource related code into its own class
2011-11-20TOLTECS: Change the updateScreen() logic a bitTorbjörn Andersson
Updating the screen when getMillis() % 10 is 0 seems sub-optimal to me. It could be true several iterations in a row (shouldn't be harmful, since updateScreen is assumed to be cheap if the screen hasn't changed) or we could miss it every single time. Let's measure the time between updates instead, just to be safer.
2011-11-20TOLTECS: CleanupFilippos Karapetis
2011-11-20TOLTECS: Updated TODOFilippos Karapetis
- Updated locations where the animation hack is necessary - Fixed crashes on scene changes (with a TODO) - MIDI Music is always XMIDI - sfClearScreen() doesn't seem to be necessary
2011-11-20TOLTECS: Fixed music loopingFilippos Karapetis
2011-11-20TOLTECS: Code cleanupFilippos Karapetis
2011-11-20TOLTECS: Initial implementation for musicFilippos Karapetis
2011-11-20TOLTECS: The resource cache is now purged when changing roomsFilippos Karapetis
2011-11-20TOLTECS: Removed now uneeded c_str() call.David Turner
2011-11-20TOLTECS: Fix Compilation After Base Code Header Changes.David Turner
2011-11-20TOLTECS: Fix bugsBenjamin Haisch
- Save scene parameters before playing a movie and restore them afterwards (fixes crash) - Fix text disappearing too fast - Implement script function sfGetCameraChanged - Replace nop script functions with stubs which print debug info when called - Some cleanup, remove obsolete TODOs
2011-11-20TOLTECS: Use CursorMan instead of OSystem for showMouseBenjamin Haisch
2011-11-20TOLTECS: Reduced header dependenciesFilippos Karapetis
2011-11-20TOLTECS: Reduced header dependenciesFilippos Karapetis
2011-11-20TOLTECS: - More work on the menu system, saving and loading from there is ↵Benjamin Haisch
now possible - Add blastSprite method which draws a sprite directly to the frontScreen without the renderQueue - Add F10 scancode in sfHandleInput to open the menu
2011-11-20TOLTECS: - Undef menu test code (oops)Benjamin Haisch
- Rename updateScreen to drawScreen - Move code from sfUpdateScreen to engine updateScreen - Use better screen sync code to get closer to the original game's speed
2011-11-20TOLTECS: - Implement kSupportsLoadingDuringStartupBenjamin Haisch
2011-11-20TOLTECS: - Hopefully fixed a bug in findRectAtPoint which causes the game to ↵Benjamin Haisch
crash before the first scene - sfHandleInput
2011-11-20TOLTECS: Fix compilation.Benjamin Haisch
2011-11-20TOLTECS: - Implemented playSoundAtPos and fixed sound panning (0 is center, ↵Benjamin Haisch
not 64 like in the original) - Minor cleanup
2011-11-20TOLTECS: Reworked the ArchiveReader and ResourceCache classes.Benjamin Haisch
ResourceCache needs more work since resources are never freed (which is bad).
2011-11-20TOLTECS: - Fixed sound playingBenjamin Haisch
- Renaming
2011-11-20TOLTECS: - Moved script functions out of the switch statement and into an arrayBenjamin Haisch
2011-11-20TOLTECS: - Fixed compilation after Fingolfin's latest series of commitsBenjamin Haisch
- Added a warning for the yet unimplemented palette transparency code - Removed "debug" calls from script, they weren't that useful - Removed unneccessary delete in the MoviePlayer - Fixed the renderer (hopefully?)
2011-11-20TOLTECS: Silenced MSVC warningsFilippos Karapetis
2011-11-20TOLTECS: - Implemented RTLBenjamin Haisch
- Fixed return values in savegame/loadgame - Some minor cleanup
2011-11-20TOLTECS: - Fixed Screen::updateTalkText (text x position was read ↵Benjamin Haisch
incorrectly and font color wasn't nibble-swapped) - Hooked up the movie player; movies can be aborted with Escape (not with mouse clicks at the moment because I was too lazy to implement it; funny, writing this explanation probably took longer :))
2011-11-20TOLTECS: Implemented preliminary sound playback; some stuff is still missing ↵Benjamin Haisch
(correct volumes etc.)
2011-11-20TOLTECS: Removed unused functions.Benjamin Haisch
2011-11-20TOLTECS: Forgot script.cpp.Benjamin Haisch
And some tests for menu & movie player in toltecs.cpp.
2011-11-20TOLTECS: Fixed a script bug (compare opcodes work on unsigned values). So ↵Benjamin Haisch
far this caused one error I noticed when climbing up the ladder in the barn where the camera didn't scroll up properly, but now it's all fine.
2011-11-20TOLTECS: - Merged input.cpp with toltecs.cppBenjamin Haisch
- Kernel function 5 returns a random value; use ScummVM's RNG
2011-11-20TOLTECS: Implemented buildColorTransTable (still TODO) and shadow sprite ↵Benjamin Haisch
drawing.
2011-11-20TOLTECS: Saving/loading is working; it still needs work but will suffice to ↵Benjamin Haisch
make debugging somewhat easier.
2011-11-20TOLTECS: - Renamed stuff and cleanupsBenjamin Haisch
- Beginnings of the saveload system (incomplete)
2011-11-20TOLTECS: - Renamed some variables & functionsBenjamin Haisch
- Mouse cursor is hidden/shown when _mouseDisabled variable is set via script
2011-11-20TOLTECS: Fixed tabs and formatting.Benjamin Haisch