278 Commits

Author SHA1 Message Date
Adrian Frühwirth
47eda4bcf7 TUCKER: Fix clipping handling when drawing text
Fixes Trac#10422.
2018-02-07 19:48:11 +01:00
Adrian Frühwirth
7e0cac25de TUCKER: Add inventory and save slot scrolling via mouse wheel
Fixes Trac#10424.
2018-02-03 22:08:33 +01:00
Adrian Frühwirth
049eff4d99 TUCKER: Fix default character width table
Non-English versions of the game include a charsize.dta/charszgr.dta
which specifies the width to use when printing glyphs from the character
set to the screen. ScummVM includes a hard-coded lookup table for games
which do not ship with such a file.
For some reason, our current hard-coded table includes widths for all
possible glyphs except one. This fix allows to properly play the German
version, which needs the character 'ß' (eszett), even when charszgr.dta
is missing.

Fixes Trac#4602.
2018-02-03 15:19:10 +01:00
Adrian Frühwirth
90ce265ab8 TUCKER: Print infobar string if no savegame exists
Before, the ingame load dialog pretended to allow loading savegames from
all possible slots even if no savegames existed.
This introduces the original interpreter's behavior which instead loads
a resource string from infobar.txt informing the user that no savegames
are available.
2018-01-31 19:23:56 +01:00
Adrian Frühwirth
ce790bff1c TUCKER: Fix sentence bar offsets
Fixes Trac#10413 and Trac#10414.
2018-01-31 19:22:56 +01:00
Adrian Frühwirth
1133b34954 TUCKER: Fix dirty rects drawing bug in drawStringInteger() 2018-01-31 19:20:31 +01:00
Adrian Frühwirth
89cbf91d63 TUCKER: Use existing enum for verbs 2018-01-31 19:18:07 +01:00
Adrian Frühwirth
9c910b9000 TUCKER: Fix dentist music in mall being played incorrectly 2018-01-31 19:17:35 +01:00
Adrian Frühwirth
4daf3e4ea5 TUCKER: Fix bubbles in Plugs shop
Fixes Trac#6641.
2018-01-31 19:06:57 +01:00
Adrian Frühwirth
3c37c42bd0 TUCKER: Cure Bud's and Billy's seasickness
This ensures that the calculated offsets for Bud and Billy are [0,2] px
and follow the sequence 0px -> 1px -> 2px -> 1px -> 0px as opposed to
the earlier 0px -> 1px -> 2px -> 3px -> 0px which resulted in them
teleporting back to their original location and on top of that being
out of sync with the boat.

Fixes Trac#6643.
2018-01-31 19:02:29 +01:00
Adrian Frühwirth
ff8e4a4410 TUCKER: Fix walking Royston glitch
Fixes Trac#6640.
2018-01-31 19:00:47 +01:00
Eugene Sandulenko
cb5436dd16 TUCKER: Clarify comment in room palette handling code 2018-01-31 18:37:24 +01:00
Adrian Frühwirth
7485fc3f75 TUCKER: Fix color cycling in submarine room
Fixes Trac#6378.
2018-01-31 18:36:03 +01:00
Adrian Frühwirth
321a563a31 TUCKER: Fix font rendering bug
Fixes Trac#6370.
2018-01-31 18:05:27 +01:00
Colin Snover
432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Eugene Sandulenko
33abb6118f ALL: Change main engine header guard defines to <directory>_<engine>_H
Recently we started to use this as new semantics, although in the past
we used simly <engine>_H. Now these guard defines are consistent with
rest of the files which are used in the engines.
2016-05-17 18:21:30 +02:00
Ori Avtalion
f35bdb680d TUCKER: Don't try parsing missing debug values in demo
Fixes the demo thinking it's in debug mode and allowing ESC to quit.
2016-03-12 21:29:10 +02:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel
0aea4b59df TUCKER: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Ori Avtalion
009f753187 TUCKER: Hide cursor in cutscenes 2016-02-24 00:13:53 +02:00
Ori Avtalion
4b83ce3800 TUCKER: Allow skipping and quitting from cutscene loops 2016-02-22 00:47:05 +02:00
Ori Avtalion
1acbfe8889 TUCKER: Remove errant loop increment (confirmed by cyx) 2016-02-22 00:44:19 +02:00
Torbjörn Andersson
d6aa2494e0 TUCKER: Add missing music to the intro
I'm told not every version of the game plays this. Mine does though,
and I see no harm in adding it for all versions. The code is robust
enough to work even if the "introdub.raw" file is missing completely.
2015-09-27 11:56:46 +02:00
Torbjörn Andersson
c8b8a2c9ee TUCKER: Fix overflow in volume calculation
This affected Bud's line, "Is that the great mystery invention you
had hidden away?" in the intro, making it very hard to hear, and
possibly other sounds as well. I don't know if this was a bug in
the original game, but it's much closer to the English version I
own now.
2015-09-27 11:53:23 +02:00
Strangerke
de4060d4a1 TUCKER: Skip the display of the intro and of the chapter number when a game is loaded from launcher 2014-05-25 14:05:14 +02:00
Strangerke
006690789a TUCKER: Add a check to error out when the index isn't found for a given location number 2014-05-24 13:53:42 +02:00
Strangerke
2dc70a9e8b TUCKER: Add a couple of safeguards to avoid out of bound access during the display of credits 2014-05-24 12:55:25 +02:00
Strangerke
e53743ddf9 TUCKER: Add a safeguard to avoid a potential out of bound access 2014-05-24 10:51:58 +02:00
Strangerke
e57a54d1c1 TUCKER: Change the type of the return value of handleSpecialObjectSelectionSequence() 2014-03-21 08:11:07 +01:00
Strangerke
3464bc2051 TUCKER: Fix some uninitialized variables 2014-03-20 07:00:13 +01:00
Strangerke
7363009cd5 TUCKER: Initialize some more pointers with nullptr instead of 0 2014-03-15 13:36:35 +01:00
Strangerke
f30246187e TUCKER: Use boolean instead of integer in several places 2014-03-15 12:34:08 +01:00
Strangerke
661f041472 TUCKER: Initialize some pointers with nullptr instead of 0 2014-03-15 12:02:44 +01:00
Strangerke
0e48803b42 TUCKER: Add a safeguard in updateCharPosition() to avoid a potential out-of-bounds read, change the type of a variable to boolean 2014-03-15 11:42:57 +01:00
Strangerke
3c76acf445 TUCKER: Some renaming in Graphics 2014-03-09 15:13:56 +01:00
Strangerke
369b2c18be TUCKER: Some more refactoring 2014-03-09 11:30:27 +01:00
Strangerke
e4cbc67493 TUCKER: Some more refactoring 2014-03-09 00:35:06 +01:00
Strangerke
113a4ac71a TUCKER: Fix some values assigned to _csDataLoaded 2014-03-09 00:15:27 +01:00
Strangerke
28ade2239a TUCKER: make _panelLockedFlag a boolean instead of an integer 2014-03-09 00:12:34 +01:00
Strangerke
47f9a2dd10 TUCKER: Fix some values assigned to _skipCurrentCharacterDraw 2014-03-09 00:03:21 +01:00
Strangerke
0b9ba6ad29 TUCKER: Some more renaming 2014-03-09 00:00:27 +01:00
Strangerke
0c247b26b4 TUCKER: Some more renaming 2014-03-08 18:36:54 +01:00
Strangerke
81815f0b8a TUCKER: Change the type of some variables to boolean 2014-03-08 18:07:24 +01:00
Strangerke
65b819305d TUCKER: Initialize some uninitialized variables 2014-03-08 17:49:53 +01:00
Strangerke
88aa12387f TUCKER: Avoid a potential string overrun by using strlcpy instead of strcpy 2014-03-07 19:33:31 +01:00
Strangerke
9ce5f1c90c TUCKER: Use a boolean for drawFlag instead of an integer 2014-03-07 19:21:13 +01:00
Strangerke
d0b9a52f64 TUCKER: Some more renaming 2014-03-07 19:21:11 +01:00
Strangerke
fbc63ebd68 TUCKER: Use boolean in place of integer for some members of the Sprite structure 2014-03-07 17:50:36 +01:00
Strangerke
854635c5c1 TUCKER: Start renaming struct members to follow coding/naming conventions 2014-03-07 17:34:48 +01:00
Strangerke
cf33c60282 TUCKER: Remove some useless modification of sprite state 2014-03-07 14:35:56 +01:00