17167 Commits

Author SHA1 Message Date
Jonathan Gray
eb3ae7d726 sizeof(void *) != sizeof(int) for a large number of systems.
Fix a lot of debug/error statements that were using %d/%x
for the result of pointer arithmetic.

As C++ apparently has no format string for ptrdiff_t use
%lu/%lx as appropriate.

svn-id: r21824
2006-04-12 10:01:41 +00:00
Sven Hesse
adbafccc64 - Fixed the mistake in Mult_v2::loadMult() that caused Gob2 floppy to
have a messed up script-pointer afterwards
- Added/Changed parts of Mult_v2::playMult() et al. so that the intro
  works for a few seconds (with glitches) before getting killed while
  trying to draw text (CD) or trying to play sounds (floppy)

svn-id: r21823
2006-04-12 09:49:08 +00:00
Max Horn
2ca3831777 Fixing the workaround for bug #1458388 (should have added trailing dot, but didn't)
svn-id: r21822
2006-04-12 08:10:49 +00:00
Lars Persson
0d9fc230bc Updated project files with new required libs.
svn-id: r21821
2006-04-12 07:56:44 +00:00
Eugene Sandulenko
7082e19ff2 Fix script dumping
svn-id: r21820
2006-04-12 03:45:54 +00:00
Eugene Sandulenko
8679083991 cleanup
svn-id: r21819
2006-04-12 03:12:56 +00:00
Johannes Schickel
e02625db6a Speeds up calcGradient again a little bit.
Also this should fix a bug in getColorAlphaImpl (I'm not 100% sure if it was wrong before though)

svn-id: r21818
2006-04-12 03:01:06 +00:00
Johannes Schickel
3fab2f4898 - some little clean ups
- improves speed of the dimming effect (get's rid of divisions in favour of shifts)
- improves speed of calcGradient (nearlly twice as fast in my tests now)

svn-id: r21817
2006-04-12 02:27:56 +00:00
Eugene Sandulenko
75fec17d7e DEBUG_SCRIPT -> debugC
svn-id: r21816
2006-04-12 01:48:15 +00:00
Eugene Sandulenko
83d75e119f Add F1-F10 keymappings like in original engine.
svn-id: r21815
2006-04-11 23:31:03 +00:00
Max Horn
24b2f65f91 Re-fix the CD version of Loom
svn-id: r21814
2006-04-11 22:47:53 +00:00
Max Horn
4ec79db410 Rearranged code in ScummEngine::openRoom a bit, to separate the filename generation from other things
svn-id: r21813
2006-04-11 22:41:44 +00:00
Max Horn
2044ee1c0d Don't hardcode specific values for our language enums, as nothing should depend on them -- any code that is broken by this change was wrong to start with and must be fixed accordingly
svn-id: r21812
2006-04-11 22:31:47 +00:00
Max Horn
0c75d7d1c0 Removed the PalmOS specific hack in file.cpp in favor for code that should work everywhere (and hopefully will help the GP32 port, too).
svn-id: r21811
2006-04-11 22:29:51 +00:00
Eugene Sandulenko
9610a4daef Fix warning.
svn-id: r21810
2006-04-11 22:11:12 +00:00
Torbjörn Andersson
a677541ac8 Added TODO comment about refreshAnimData[] and why it's not (yet) a field in
the AnimData struct.

svn-id: r21809
2006-04-11 21:39:09 +00:00
Torbjörn Andersson
10c62a2eed If generateDetectName() generates an empty string, that's a failure, not a
success. Otherwise ScummVM will crash once the game detector reaches the
"generic HE game variants", which makes it hard to add non-SCUMM games.

svn-id: r21808
2006-04-11 19:29:55 +00:00
Chris Apers
7aacf8e5fb Updated project file
svn-id: r21807
2006-04-11 18:26:40 +00:00
Chris Apers
37ecf6bc0a Bad hack to make the file class work agaain with PalmOS ARM version - read the comment for more details
svn-id: r21806
2006-04-11 18:25:04 +00:00
Chris Apers
f61d74532b Fixed crash with PalmOS ARM version : global objects are allocated but constructors are not called - anyway this var is useless with PalmOS version
svn-id: r21805
2006-04-11 18:19:54 +00:00
Chris Apers
a8e772fa54 Fixed line ending
svn-id: r21804
2006-04-11 18:16:53 +00:00
Chris Apers
89ed8e8891 Not needed
svn-id: r21803
2006-04-11 18:16:12 +00:00
Chris Apers
f0d03fb52f PalmOS too
svn-id: r21802
2006-04-11 18:14:26 +00:00
Chris Apers
4f28027c55 Fixed FS support based on lastest changes to the base fs class
svn-id: r21801
2006-04-11 18:13:04 +00:00
Chris Apers
f6ae33b3d7 There is no ::create function anymore in backends
svn-id: r21800
2006-04-11 18:11:03 +00:00
Chris Apers
d32320da0f Added now required palm_main(...) function
svn-id: r21799
2006-04-11 18:08:51 +00:00
Chris Apers
cbe570756b Missing endian.h
svn-id: r21798
2006-04-11 18:06:22 +00:00
Chris Apers
0fd8c1da1e Added missing 'auto' music driver
svn-id: r21797
2006-04-11 18:04:09 +00:00
Johannes Schickel
ea6c62ba3d Draws the same border for 'kWidgetBackgroundPlain' as for 'kWidgetBackgroundBorderSmall'.
This fixes missing border in the pop up widget.

svn-id: r21796
2006-04-11 16:32:03 +00:00
Johannes Schickel
521697be01 Fixes disappearing borders with classic theme.
svn-id: r21795
2006-04-11 16:28:00 +00:00
Johannes Schickel
4b8b7e2aed Checks if something is drawn out of the screen in drawSurfaceMasked (fixes crashes with --force-1x-overlay)
svn-id: r21794
2006-04-11 16:05:59 +00:00
Johannes Schickel
3ac923ba58 Fixes cutted texts with --force-1x-overlay.
svn-id: r21793
2006-04-11 15:45:21 +00:00
Johannes Schickel
a7a5f40cfc - cleans up drawSurfaceMasked a little bit
- get rid of getColorAlpha in drawSurfaceMasked if no alpha blending is used

svn-id: r21792
2006-04-11 15:34:07 +00:00
Johannes Schickel
c3733105cc Changed drawScrollbar to use drawShadow.
svn-id: r21791
2006-04-11 14:51:38 +00:00
Johannes Schickel
12374accc3 Makes classic theme compile without OLDGUI_TRANSPARENCY again.
svn-id: r21790
2006-04-11 14:16:15 +00:00
Max Horn
a42dd86e85 Some more MD5 entries / confirmations by Peter Eckerlein
svn-id: r21788
2006-04-11 12:59:44 +00:00
Torbjörn Andersson
d846f9a5e1 Added delays to the main and menu event loops to keep Lure from gobbling up all
available CPU time.

svn-id: r21787
2006-04-11 11:55:27 +00:00
Torbjörn Andersson
cba4871140 Changed max() to MAX(). This fixes compilation for me.
svn-id: r21786
2006-04-11 11:34:06 +00:00
Paul Gilbert
e3254a8879 Added disassembly of room exit handling, as well as a few cleanups to the path finding code
svn-id: r21785
2006-04-11 10:53:24 +00:00
Paul Gilbert
b8c80af183 Added proper path finding code for rooms, as well as miscellaneous support methods
svn-id: r21784
2006-04-11 10:52:11 +00:00
Paul Gilbert
4b91326131 Added a destRoomNumber variable to store which room a highlighted exit goes to, as well as some temporary code used to display pathfinding information onscreen when Toggle Info is turned on
svn-id: r21783
2006-04-11 10:50:18 +00:00
Paul Gilbert
169c8d78d1 Implemented better handling of changing rooms via room exits
svn-id: r21782
2006-04-11 10:48:28 +00:00
Paul Gilbert
7b32b7ef9c Added new resources for pathfinding and new resources
svn-id: r21781
2006-04-11 10:46:36 +00:00
Paul Gilbert
9b87224036 Resource loader enhanced to load hotspot proximity data and room walkable areas
svn-id: r21780
2006-04-11 10:45:22 +00:00
Paul Gilbert
f6b2cf2c6d Updated resource structures to add support for hotspot y corrections, proximity data, room walkable areas, and the room exit coordinate list
svn-id: r21779
2006-04-11 10:43:53 +00:00
Paul Gilbert
70654bc2a9 Added a script method for setting a blocking hotspot script
svn-id: r21778
2006-04-11 10:42:32 +00:00
Travis Howell
95993df800 Ooops, re-enable code in allocBlock()
svn-id: r21776
2006-04-11 00:42:19 +00:00
Travis Howell
c17e46b1f1 Update waitForSync() for FF and minor cleanup
svn-id: r21775
2006-04-11 00:37:54 +00:00
Torbjörn Andersson
62a163bc43 Might as well clear ptr1 and ptr2 in animDataTable[] when loading a savegame.
The previous commit should ensure that the elements that need to be loaded are.

svn-id: r21774
2006-04-10 23:48:22 +00:00
Travis Howell
8ae793c81e Cleanup
svn-id: r21773
2006-04-10 23:44:17 +00:00