Commit Graph

37 Commits

Author SHA1 Message Date
Johannes Schickel
8b9afc9d92 TOLTECS: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Filippos Karapetis
247472624a TOLTECS: Fix operator order (pre-decrement instead of post-decrement)
A typo in commit 98fa064. Thanks to LordHoto for pointing that out
2013-05-14 02:11:59 +03:00
Filippos Karapetis
98fa064edf TOLTECS: Fix bug #3613032 - "TOLTECS: Crash during peace pipe coughing scene"
Check for the end of the movie resource before buffering more audio chunks.
This avoids reading past the end of the movie resource. Also, clean up some
movie related checks
2013-05-14 01:45:33 +03:00
Filippos Karapetis
dfea40cc11 TOLTECS: Remove dead code
The clearSprites() method is a leftover from the older sprite drawing code
2013-04-26 18:21:23 +03:00
Filippos Karapetis
63660cd019 TOLTECS: Whitespace fixes and explanation of some magic values 2013-01-22 04:21:00 +02:00
Filippos Karapetis
b7bfff1bfa TOLTECS: Fix bug #3599370 - "TOLTECS: Text on intro video not shown as per original" 2013-01-13 15:39:00 +02:00
Torbjörn Andersson
f93facaf45 TOLTECS: Make aborting movies more reliable
Before, the main updateInput() might swallow attempts at aborting
movies. Now all events are handled by the movie player's own
handleInput(). As a side effect, it's no longer necessary to check
if a movie is playing before removing subtitles when pressing space.
2013-01-04 02:27:56 +01:00
Torbjörn Andersson
e0b75c59ea TOLTECS: Remove unnecessary calls to quitGame()
Calling quitGame() simply creates a new quit event. There's no
need to do that when catching a quit event.
2013-01-04 02:12:21 +01:00
Torbjörn Andersson
ad36fb3366 TOLTECS: Don't allow dialog skipping while movies are playing 2013-01-02 22:18:09 +01:00
Torbjörn Andersson
49e96aa188 TOLTECS: Improve the shake screen effects during movies
I don't know how often the original shook the screen (perhaps as
often as it could?), but at least we now have the opportunity to
shake the screen more than once per movie frame.
2012-10-06 00:01:47 +02:00
Torbjörn Andersson
b50f5a4cde TOLTECS: Improve audio/video sync in the movie player
At least on my computer, the sound would stall frequently after a
while because the delay between frame was calculated from frame to
frame. Now it's calculated from the start of the sound instead.
2012-10-03 08:28:02 +02: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
3919c51e86 TOLTECS: Adapt the movie chunk buffer allocation code
Thanks to wjp and LordHoto for their feedback
2012-09-14 11:40:27 +03:00
Filippos Karapetis
748e3894a3 TOLTECS: Don't show movie subtitles when subtitles are disabled 2012-09-11 00:50:52 +03:00
Filippos Karapetis
5ea896b069 TOLTECS: Stop reallocating the chunk buffer on each movie frame
This somewhat reduces the stuttering in the intro movie (but it's still there)
2012-09-11 00:34:31 +03:00
Filippos Karapetis
de75d25725 TOLTECS: Remove a superfluous seek 2012-09-11 00:34:30 +03:00
Filippos Karapetis
455ad8a5bc TOLTECS: Read the sound rate for each video file 2012-09-11 00:34:29 +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
c119cbda90 TOLTECS: Slight cleanup of the audio code 2011-11-20 22:43:12 +01:00
Filippos Karapetis
94f5b8b190 TOLTECS: Always hide the game interface when showing a movie 2011-11-20 22:43:12 +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
David Turner
e4005ae927 TOLTECS: Fix compilation after sound->audio directory rename. 2011-11-20 22:43:10 +01:00
Filippos Karapetis
4cc5934d84 TOLTECS: Reduced header dependencies 2011-11-20 22:43:10 +01:00
Benjamin Haisch
661ce95478 TOLTECS: - Fix regression in movie player (use drawScreen instead of updateScreen) 2011-11-20 22:43:10 +01:00
Benjamin Haisch
7f78f62467 TOLTECS: Fixed compilation with current SVN changes 2011-11-20 22:43:09 +01:00
Filippos Karapetis
89a5208a58 TOLTECS: Fixed compilation with the latest trunk changes.
This change also unveiled a serious problem: the same include files are used EVERYWHERE (e.g. code manipulating the screen is using sound includes). Added a FIXME concerning this
2011-11-20 22:43:09 +01:00
Benjamin Haisch
69f35c8709 TOLTECS: Fixed compilation 2011-11-20 22:43:08 +01:00
Filippos Karapetis
5948672be5 TOLTECS: Fixed compilation with the latest sound changes in the trunk 2011-11-20 22:43:08 +01:00
Benjamin Haisch
a0432fd546 TOLTECS: Fixed compilation 2011-11-20 22:43:08 +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
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
9e78b5d393 TOLTECS: - Listing savestates via command line or Launcher
- Loading/Saving during run time
Other savestate functions yet todo.
I'll probably remove the "original" in-game menu and move everything to the GMM.
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
02e2b78e5c TOLTECS: Added sound to the movie player (finally). Still TODO: Ability to abort movies. 2011-11-20 22:43:07 +01:00
Benjamin Haisch
d09fbbabe6 TOLTECS: - Added menu system prototype (may change later)
- Added movie player (still incomplete, sound is not yet implemented)
Both are not yet hooked to the engine.
- Added code for microtile arrays (from the SEL - Simple DirectMedia Layer Extension Library project), under the LGPL
This will be used as dirty rectangle "manager". This is experimental for now, it may be removed later.
2011-11-20 22:43:06 +01:00