Commit Graph

224 Commits

Author SHA1 Message Date
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
Johannes Schickel
b4d0a8ba66 JANITORIAL: Enforce "} // End of namespace" with a single space after }. 2013-01-26 19:38:02 +01:00
Filippos Karapetis
93763acd32 TOLTECS: Don't change the archive position when loading a resource (bug #3601567) 2013-01-22 04:23:11 +02:00
Filippos Karapetis
63660cd019 TOLTECS: Whitespace fixes and explanation of some magic values 2013-01-22 04:21:00 +02:00
Filippos Karapetis
bbec4acff5 TOLTECS: Fix bug #3600166 - "TOLTECS: Parrot speech cuts off Fenimore's in Cemetery" 2013-01-13 16:29:25 +02:00
Filippos Karapetis
981bc20337 TOLTECS: Replace a magic value with its appropriate enum 2013-01-13 16:11:04 +02:00
Filippos Karapetis
e45950b966 TOLTECS: Whitespace fixes 2013-01-13 15:51:52 +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
Filippos Karapetis
1302f62b9f TOLTECS: Whitespace fixes 2013-01-13 15:23:55 +02:00
Filippos Karapetis
796867cd32 TOLTECS: Fix script bug #3599964 - "TOLTECS: Crash when entering cave" 2013-01-08 23:13:38 +02:00
Filippos Karapetis
3e025a8c55 TOLTECS: Add detection for the English demo and correct the German one 2013-01-06 20:43:23 +02:00
Torbjörn Andersson
532dd09b21 TOLTECS: When a new dialog opens, highlight active item (if any)
We do this by acting as if the mouse just moved to its current
position. I first noticed this on the original save/load dialogs.
2013-01-04 10:58:27 +01:00
Torbjörn Andersson
c9a175a877 TOLTECS: Scroll original save/load dialog to bottom on opening
This doesn't behave quite like the original - it seems the original
does not take the fake last entry into account when saving? - but I
think it's actually a bit more consistent this way.
2013-01-04 10:50:18 +01:00
Torbjörn Andersson
8afe7a2361 TOLTECS: Hide/show arrows in original save/load dialogs
The arrows are only visible when there are savegames to scroll to
in that direction.
2013-01-04 10:32:10 +01: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
f7e4f4b354 TOLTECS: Adjust verb drawing to look more like original
Both the "wobble" and the positions were slightly off. I didn't
want to change _verbLineY because for one thing it doesn't seem to
affect the drawing of the verbs, and for another it seems to be
stored in savegames because... squirrel!
2013-01-04 00:40:17 +01:00
Torbjörn Andersson
739549a29b TOLTECS: Small adjustments to the dialogs to better match original
There are still lots of things that don't look or act quite like
the original, but it's getting late here.
2013-01-04 00:01:10 +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
6a8fc83f42 TOLTECS: Silence Valgrind warnings
At the very least, _mainPalette[] was being used (partly?)
uninitialised in buildColorTransTable(), causing lots of warnings.
2013-01-02 22:05:13 +01:00
Filippos Karapetis
840633c508 TOLTECS: Cleanup of the script debug messages 2013-01-02 20:02:29 +02:00
Filippos Karapetis
69da727c55 TOLTECS: Add a debug console 2013-01-02 20:02:29 +02:00
Filippos Karapetis
7b80c033c1 TOLTECS: Fix the colors of the arrows in the sound volume screen 2013-01-02 17:01:52 +02:00
Filippos Karapetis
ef6003c29f TOLTECS: Add an option to use the ScummVM save/load screens 2013-01-02 16:48:52 +02:00
Filippos Karapetis
46b5f15a4a TOLTECS: Some more menu color fixes 2013-01-02 15:26:36 +02:00
Filippos Karapetis
16026cb8de TOLTECS: Fix more menu colors 2013-01-02 15:21:13 +02:00
Filippos Karapetis
027deb1612 TOLTECS: Fix menu colors 2013-01-02 15:05:10 +02:00
Filippos Karapetis
765578effe TOLTECS: Cleanup 2013-01-02 15:04:48 +02:00
D G Turner
b35bda1715 TOLTECS: Remove unused, but set, variable, start. 2012-11-19 23:27:07 +00: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
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
e47425aaf5 TOLTECS: Wait a bit after drawing each frame
This reduces the CPU load considerably (it's around 10% now, down from 50%)
2012-10-06 00:13:50 +03:00
Filippos Karapetis
650df5a16c TOLTECS: Remove redundant screen updates 2012-10-06 00:12:53 +03:00
Torbjörn Andersson
8335e340fd TOLTECS: Fix menu positining in the simplest way I can think of
All this does is to offset the image when copying it to the screen,
and offset the position when checking for clickable items at specific
coordinates. It looks and works right to me. I guess that just leaves
the buildColorTransTable2() function, but I'm useless for that so
someone else will have to look into it.
2012-10-03 22:21:52 +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
Torbjörn Andersson
eea9fc637c TOLTECS: Added TODO comment about main menu position
I'm guessing that the unused _top variable is what causes the main
menu to be drawn at the wrong position at the very start of the
game. At that point, it's 30 which seems to be by how much the Y
coordinate is off.
2012-10-03 01:09:11 +02:00
Torbjörn Andersson
f758b8422c TOLTECS: Draw shaded rects to "front screen", not "background"
The shadeRect() function is called just once (at the time of writing)
and immediately afterwards the "front screen" is copied to the
"background". Therefore, drawing to the background doesn't seem to
make any sense.

The colors are wrong, but I assume that's for the same reason that the
text colors are wrong as well.
2012-10-02 22:12:56 +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
Johannes Schickel
fad5041a32 TOLTECS: Replace ceil with integer maths.
This removes an unnecessary use of floating point maths.
2012-09-21 03:01:39 +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
Filippos Karapetis
c0a1d78e0e TOLTECS: Store channel volume/panning information in saved games 2012-09-11 00:34:28 +03: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
Filippos Karapetis
72cdd019fc TOLTECS: Implement volume handling and toggling of speech/text 2012-09-11 00:34:23 +03:00
Johannes Schickel
69723c82bc TOLTECTS: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
Johannes Schickel
99229fc7ab TOLTECS: Get rid of casts on CursorManager::replaceCursor calls. 2012-06-16 03:28:43 +02:00
Johannes Schickel
72f1fb0bed TOLTECS: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:39:00 +02:00