Johannes Schickel
8b9afc9d92
TOLTECS: Make GPL headers consistent in themselves.
2014-02-18 02:39:39 +01:00
Strangerke
30441cc7c1
TOLTECS: Fix spacing errors
2013-11-24 18:52:45 +01:00
Filippos Karapetis
14f1529976
TOLTECS: Ignore invalid script opcodes (script bugs) - bug #3604025
...
The original ignores invalid opcodes as well, according to johndoe
2013-04-26 18:21:23 +03:00
Torbjörn Andersson
4b0d0ecdda
TOLTECS: Work around undefined subtitle behaviour at script loading
...
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-03-15 18:48:44 +01:00
Filippos Karapetis
796867cd32
TOLTECS: Fix script bug #3599964 - "TOLTECS: Crash when entering cave"
2013-01-08 23:13:38 +02:00
Filippos Karapetis
840633c508
TOLTECS: Cleanup of the script debug messages
2013-01-02 20:02:29 +02:00
Filippos Karapetis
765578effe
TOLTECS: Cleanup
2013-01-02 15:04:48 +02:00
Filippos Karapetis
be918da348
TOLTECS: Hide the mouse cursor while a movie is playing, like the original
...
Thanks to eriktorbjorn for noticing this
2012-10-06 00:24:34 +03:00
Filippos Karapetis
650df5a16c
TOLTECS: Remove redundant screen updates
2012-10-06 00:12:53 +03:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Filippos Karapetis
a9a579891e
TOLTECS: Open the save menu with F5 and the load menu with F9
...
Also, this changes the dialog skip key to space instead of escape
2012-09-11 00:34:27 +03:00
Tarek Soliman
a4798602d7
JANITORIAL: Fix missing whitespace in pointer cast
...
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-02-15 10:07:10 -06:00
Torbjörn Andersson
54041675e5
TOLTECS: Some formatting fixes.
2012-01-29 21:41:16 +01:00
Filippos Karapetis
0b4a022018
TOLTECS: Save music in saved games
...
Also, move all music resource related code into its own class
2011-11-24 00:03:01 +02:00
Torbjörn Andersson
9f5f240e90
TOLTECS: Change the updateScreen() logic a bit
...
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-20 23:45:29 +01:00
Filippos Karapetis
a8112121b2
TOLTECS: Cleanup
2011-11-20 22:43:12 +01:00
Filippos Karapetis
b6c3232ea3
TOLTECS: Updated TODO
...
- 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-20 22:43:12 +01:00
Filippos Karapetis
1bddee1e73
TOLTECS: Fixed music looping
2011-11-20 22:43:12 +01:00
Filippos Karapetis
9841ce6b9f
TOLTECS: Code cleanup
2011-11-20 22:43:12 +01:00
Filippos Karapetis
360bd6edd3
TOLTECS: Initial implementation for music
2011-11-20 22:43:12 +01:00
Filippos Karapetis
5298859cba
TOLTECS: The resource cache is now purged when changing rooms
2011-11-20 22:43:11 +01:00
David Turner
9b885d0c50
TOLTECS: Removed now uneeded c_str() call.
2011-11-20 22:43:11 +01:00
David Turner
a3007d6e2a
TOLTECS: Fix Compilation After Base Code Header Changes.
2011-11-20 22:43:10 +01:00
Benjamin Haisch
acd4d4098f
TOLTECS: Fix bugs
...
- 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-20 22:43:10 +01:00
Benjamin Haisch
581f0ba8b5
TOLTECS: Use CursorMan instead of OSystem for showMouse
2011-11-20 22:43:10 +01:00
Filippos Karapetis
4cc5934d84
TOLTECS: Reduced header dependencies
2011-11-20 22:43:10 +01:00
Filippos Karapetis
febda31f50
TOLTECS: Reduced header dependencies
2011-11-20 22:43:10 +01:00
Benjamin Haisch
1cb95f36e7
TOLTECS: - More work on the menu system, saving and loading from there is 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-20 22:43:10 +01:00
Benjamin Haisch
9698127c5d
TOLTECS: - Undef menu test code (oops)
...
- 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-20 22:43:10 +01:00
Benjamin Haisch
9c3a4bc055
TOLTECS: - Implement kSupportsLoadingDuringStartup
2011-11-20 22:43:10 +01:00
Benjamin Haisch
2acf1bf6f5
TOLTECS: - Hopefully fixed a bug in findRectAtPoint which causes the game to crash before the first scene
...
- sfHandleInput
2011-11-20 22:43:09 +01:00
Benjamin Haisch
3c49d36d5f
TOLTECS: Fix compilation.
2011-11-20 22:43:08 +01:00
Benjamin Haisch
9a84c13bef
TOLTECS: - Implemented playSoundAtPos and fixed sound panning (0 is center, not 64 like in the original)
...
- Minor cleanup
2011-11-20 22:43:08 +01:00
Benjamin Haisch
ce7febcd70
TOLTECS: Reworked the ArchiveReader and ResourceCache classes.
...
ResourceCache needs more work since resources are never freed (which is bad).
2011-11-20 22:43:07 +01:00
Benjamin Haisch
af7e1c1683
TOLTECS: - Fixed sound playing
...
- Renaming
2011-11-20 22:43:07 +01:00
Benjamin Haisch
eab360f3e7
TOLTECS: - Moved script functions out of the switch statement and into an array
2011-11-20 22:43:07 +01:00
Benjamin Haisch
2eb6482b06
TOLTECS: - Fixed compilation after Fingolfin's latest series of commits
...
- 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-20 22:43:07 +01:00
Filippos Karapetis
46257f7bb4
TOLTECS: Silenced MSVC warnings
2011-11-20 22:43:07 +01:00
Benjamin Haisch
1f4764ad1c
TOLTECS: - Implemented RTL
...
- Fixed return values in savegame/loadgame
- Some minor cleanup
2011-11-20 22:43:07 +01:00
Benjamin Haisch
47ae908589
TOLTECS: - Fixed Screen::updateTalkText (text x position was read 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-20 22:43:07 +01:00
Benjamin Haisch
4b13982116
TOLTECS: Implemented preliminary sound playback; some stuff is still missing (correct volumes etc.)
2011-11-20 22:43:07 +01:00
Benjamin Haisch
f77960e81b
TOLTECS: Removed unused functions.
2011-11-20 22:43:07 +01:00
Benjamin Haisch
3b89304dd9
TOLTECS: Forgot script.cpp.
...
And some tests for menu & movie player in toltecs.cpp.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
2930003864
TOLTECS: Fixed a script bug (compare opcodes work on unsigned values). So 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-20 22:43:05 +01:00
Benjamin Haisch
74c05f6aa8
TOLTECS: - Merged input.cpp with toltecs.cpp
...
- Kernel function 5 returns a random value; use ScummVM's RNG
2011-11-20 22:43:05 +01:00
Benjamin Haisch
5660ff5148
TOLTECS: Implemented buildColorTransTable (still TODO) and shadow sprite drawing.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
51214a461a
TOLTECS: Saving/loading is working; it still needs work but will suffice to make debugging somewhat easier.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
dd5567613f
TOLTECS: - Renamed stuff and cleanups
...
- Beginnings of the saveload system (incomplete)
2011-11-20 22:43:05 +01:00
Benjamin Haisch
21f6dad09a
TOLTECS: - Renamed some variables & functions
...
- Mouse cursor is hidden/shown when _mouseDisabled variable is set via script
2011-11-20 22:43:05 +01:00
Benjamin Haisch
f4e156b3b3
TOLTECS: Fixed tabs and formatting.
2011-11-20 22:43:05 +01:00