Commit Graph

43405 Commits

Author SHA1 Message Date
Sven Hesse
d4357c5c3f GOB: Give Inca2 its own Inter class
svn-id: r55296
2011-01-18 11:52:24 +00:00
Sven Hesse
1c63862f2b GOB: Add a workaround for Inca2
The scripts seem to depend on var32_236 to be cleared at the
start of each new script file.

svn-id: r55295
2011-01-18 11:51:45 +00:00
Sven Hesse
a6073a649a GOB: Add some sanity checks
svn-id: r55294
2011-01-18 10:42:26 +00:00
Sven Hesse
efe0dea82c GOB: Implement Urban Runner autosave
Makes the "Try again" after a death work

svn-id: r55293
2011-01-18 09:27:32 +00:00
Arnaud Boutonné
4413754ad2 HUGO: Improve mouse support in H3 DOS version
- Fix description of Penelope lying (when using mouse)
- Use H3 Win logic in order to handle horizon
- Add a workaround for a data bug in scenery1.dat, fixing the
pathfinding bug in Crash screen

svn-id: r55292
2011-01-18 09:16:52 +00:00
Arnaud Boutonné
839926ef10 HUGO: Clean-up
Modify debug level for 2 debug messages, 
Suppress obsolete comments,
Fix typo in comment

svn-id: r55291
2011-01-18 08:32:10 +00:00
Sven Hesse
61b90c43d8 GOB: Fix a stupid typo in o2_readData()
svn-id: r55290
2011-01-18 08:14:23 +00:00
Sven Hesse
f33b84ff3d GOB: Fix Woodruff object videos
svn-id: r55289
2011-01-18 07:03:42 +00:00
Sven Hesse
94f5bec0f6 GOB: Fix Woodruff video offsets
svn-id: r55288
2011-01-18 07:03:12 +00:00
Sven Hesse
dd01e4c303 GOB: Increase debug level for a debug message
svn-id: r55287
2011-01-18 07:02:42 +00:00
Sven Hesse
e73484b259 GOB: Fix Urban Runner hotspot texts
Thanks to SylvainTV :)

svn-id: r55286
2011-01-18 06:30:47 +00:00
Sven Hesse
d509941eca VIDEO: Clip render rect to the surface's dimension
...And not to the video's. Oops :P

svn-id: r55285
2011-01-18 05:09:43 +00:00
Sven Hesse
283bec822d GOB: Add a sanity check in oPlaytoons_readData
svn-id: r55284
2011-01-18 04:19:33 +00:00
Sylvain Dupont
92ddccec09 GOB: Add chroma values linear interpolation in drawYUV
Fixes the blockiness and apparent color shifting in some Urban Runner menu icons.

svn-id: r55283
2011-01-18 00:56:48 +00:00
Matthew Hoops
2a808be804 MOHAWK: Implement xgrviewer so the right viewer on gspit is usable
svn-id: r55282
2011-01-18 00:42:16 +00:00
David Turner
f042e398ea PARALLACTION: Fix Big Red Adventure Walking To Stop On Path Build Failure.
Walking now works correctly, with no valgrind issues, lockups or assertions.

svn-id: r55281
2011-01-18 00:22:47 +00:00
David Turner
c6750a7a65 PARALLACTION: Minor Whitespace and code complexity reduction in walk.*
svn-id: r55280
2011-01-17 23:12:59 +00:00
David Turner
3ebf1e5962 PARALLACTION: Some Improvements To Big Red Adventure Walk Code.
* Renamed and retyped "int _fieldC" to "bool _stillWalkingTowardsNode" to aid readability and clarity of code. Thanks to fuzzie for naming.
* Added assertion to prevent use of invalid memory as reported by Valgrind when walk point p is constructed from an empty list.
* Added code to stop walk if buildPath fails, though this causes an assertion instead currently.

svn-id: r55279
2011-01-17 23:00:52 +00:00
Matthew Hoops
3fa01f4030 MOHAWK: Implement the Riven pin controls
svn-id: r55278
2011-01-17 16:10:48 +00:00
Sven Hesse
db13af5337 GOB: Make the variable stack endianness-independent
Since Urban Runner casts int16s to uint32 before pushing them onto the
stack and after popping assumes it's little endian, we have explicitely
preserve the variable space endianness while pushing/popping.

svn-id: r55277
2011-01-17 13:37:14 +00:00
Sven Hesse
6c6d85908f GOB: Fix o2_pushVars()
Fixes Urban Runner loading.
This being broken has the potential of messing up
/everything/ in unpredictable ways, so saves of games using
this opcode may be borked. Thankfully, I *think* it's just
Urban Runner, which isn't working/supported yet anyway.

svn-id: r55276
2011-01-17 12:09:06 +00:00
Sven Hesse
da65a3cbf3 GOB: Fix the flow rate gauge in Urban Runner
svn-id: r55275
2011-01-17 09:48:42 +00:00
Sven Hesse
8a1e9c8256 GOB: Remove unused old shade functions
svn-id: r55274
2011-01-16 22:30:19 +00:00
Sven Hesse
e6d04b8ad6 GOB: Adding a proper shade method
svn-id: r55273
2011-01-16 22:29:49 +00:00
Sven Hesse
58228919fc GOB: Use the correct font and shade color in Urban Runner
svn-id: r55272
2011-01-16 22:29:18 +00:00
Sven Hesse
0d11ae143f GOB: Add a method to get a true palette color
svn-id: r55271
2011-01-16 22:28:49 +00:00
Sven Hesse
68ebdf20d5 GOB: Don't clobber the global palette
svn-id: r55270
2011-01-16 22:28:20 +00:00
Sven Hesse
199b5d06af GOB: Remove unused declarations
svn-id: r55269
2011-01-16 22:27:48 +00:00
Johannes Schickel
5742a11510 SCUMM: Prefer "Could not" over "Couldn't" in some error messages.
svn-id: r55268
2011-01-16 20:24:58 +00:00
Johannes Schickel
2633a70018 GUI: Fix language popup in the game options.
r49786 introduced a regression which made the game options menu set the
game language to "zh-cn" in case "<default>" was selected. Also in case no
language key was present in the game's config domain no text was shown at all,
now it shows "<default>" in that case again.

svn-id: r55267
2011-01-16 20:12:55 +00:00
Johannes Schickel
c0434258f9 TOOLS: Fix Win64 MSVC project files.
This is done by adding the "SDL_BACKEND" define to x64 MSVC project files, otherwise linker errors would occur, since certain SDL code would not get compiled.

svn-id: r55266
2011-01-16 19:38:22 +00:00
Sven Hesse
84cda62d1f VIDEO: Implement internal-codec 24bpp VMDs
svn-id: r55265
2011-01-16 16:41:27 +00:00
Sven Hesse
518e858d85 GOB: Allow true-color VMD cursors
svn-id: r55264
2011-01-16 16:30:15 +00:00
Sven Hesse
32b94cc236 VIDEO: Implement internal-codec 16bit VMDs
svn-id: r55263
2011-01-16 16:29:43 +00:00
Sven Hesse
b451d3b51c GOB: Add the property switchColorMode
To allow the videoplayer (and ultimatively the demoplayer)
to switch color modes if necessary.

svn-id: r55262
2011-01-16 16:29:19 +00:00
Sven Hesse
e063ced21a GOB: Add setTrueColor()
To change ScummVM's color mode on-the-fly

svn-id: r55261
2011-01-16 16:28:47 +00:00
Sven Hesse
7de179c2c8 GOB: Add setBPP()
To allow converting the surface's bytes per pixel
without destroying it first.

svn-id: r55260
2011-01-16 16:28:17 +00:00
Sven Hesse
faa66fc01a VIDEO: Add color mode methods
To query the video's color mode and notifying the decoder that
the system's color mode changed.

svn-id: r55259
2011-01-16 16:27:52 +00:00
Sven Hesse
afd101c526 VIDEO: Add range checks to deLZ77()
svn-id: r55258
2011-01-16 16:27:22 +00:00
Sven Hesse
23c1184d80 VIDEO: Simplying the video buffers
svn-id: r55257
2011-01-16 16:26:52 +00:00
Filippos Karapetis
9339428fc1 MIDI parser: Stop hanging notes when a notes off event is called
This is the same fix as the one in r54429 for the MIDI parser of the SCI engine, based
on patch #3116608. Probably fixes (or is indirectly related to) bugs #2825928 (for
MADE), #2948281 (for SAGA), #2797283 (for tinsel), #2016549 (for SCUMM) and #2138118
(for kyra), as these engines are all using the MidiParser class internally.

svn-id: r55256
2011-01-16 11:02:49 +00:00
Torbjörn Andersson
da42014402 SWORD25: Fix main menu button text colour
In the other cases I've found in the code, the colour components are
stored in the order B, G, R and A. Assume that's the case here too. I
hope that is correct. It doesn't seem to break anything obvious.

svn-id: r55255
2011-01-16 08:15:47 +00:00
Filippos Karapetis
0309f36552 SCI: Plugged 2 memory leaks, reported by digitall
- Plugged 2 memory leaks in the SCI0 menu code (the lists of menu and submenu entries)
- Got rid of the _listCount variable

svn-id: r55254
2011-01-15 23:55:35 +00:00
Bastien Bouclet
09c35e99b8 MOHAWK: Implement Myst's clock tower gears puzzle
svn-id: r55253
2011-01-15 19:11:53 +00:00
Alyssa Milburn
295550b26c MOHAWK: Get rid of the DETECT_BRODERBUND_TITLES define.
svn-id: r55252
2011-01-15 18:39:29 +00:00
Filippos Karapetis
f680e24146 SCI: Added a hack to fix bug #3122075 - "LB1: Game play freezes when taking shower"
This is a regression from the new kInitBresen/kDoBresen functions, enabled in r52467.
Many thanks to waltervn for his work in bisecting this. The actual bug should be
found, but since only this death scene has an issue, it's not really worth the
effort. The old functions are based on observations, so there are many differences in
the way that they behave. If another test case is found, then this shall be examined
further. Until then, this simple and unobtrusive hack will do.

svn-id: r55251
2011-01-15 18:25:10 +00:00
Filippos Karapetis
0f9c33e02f SCI: cleaned up checkSelectorBreakpoint()
svn-id: r55250
2011-01-15 12:18:13 +00:00
Filippos Karapetis
c8b3200dd3 SCI: Extended the bpk debug command so that it can also disable a breakpoint on a kernel function
svn-id: r55249
2011-01-15 11:54:20 +00:00
Filippos Karapetis
cc9f2944ed MIDI: Fixed unnecessary casts of return values to void, reported in bug #3153076
svn-id: r55248
2011-01-15 09:43:02 +00:00
Filippos Karapetis
47d109a093 SCI: Bugfix for r55246: Don't send init commands when resuming a sound
svn-id: r55247
2011-01-15 09:28:42 +00:00