Commit Graph

35008 Commits

Author SHA1 Message Date
Robert Špalek
0470c25881 Small bugfix in path-finding
svn-id: r45602
2009-11-01 21:19:39 +00:00
Martin Kiewitz
f2dbd3357f SCI/newgui: kBaseSetter ported from gregs engine, kq5 pathfinding works now correctly
svn-id: r45601
2009-11-01 21:14:33 +00:00
Robert Špalek
504973a073 One more clean-up of the path-finding code
svn-id: r45599
2009-11-01 19:30:51 +00:00
Robert Špalek
170918afab Cleaned up the walking code.
PathVertex replaced by Common::Point.  Do not update the path sprites if
not in the debugging mode.

svn-id: r45598
2009-11-01 19:22:41 +00:00
Robert Špalek
c1cc230e4b Debugged computation and displaying of optimal walking paths
svn-id: r45597
2009-11-01 12:57:06 +00:00
Robert Špalek
5c7a120471 Add methods to draw computed walking paths.
svn-id: r45596
2009-11-01 10:58:34 +00:00
Robert Špalek
7927196b3f Fix mistakenly ordered flushing revealed by the last commit
svn-id: r45595
2009-11-01 10:15:48 +00:00
Robert Špalek
f91c89560f Get rid of doubling memory allocation and a lot of copying.
The Sprite class points to the original buffer (which is cached in the memory
thanks to BArchive machinery) instead of allocating its own buffer and
copying the source there.

svn-id: r45594
2009-11-01 10:03:37 +00:00
Yotam Barnoy
b3eef9e066 AGOS Simon1 Windows fix. Fixed careless use of setChar function.
svn-id: r45592
2009-11-01 09:39:16 +00:00
Robert Špalek
c8534e1802 Implemented some utility functions for path-finding.
In particular, breadth-first search algorithm for getting the shortest path
in the walkable area and an algorithm making the path oblique when possible.

svn-id: r45591
2009-11-01 09:34:07 +00:00
Walter van Niftrik
6522df6d6d SCI: AvoidPath: Add simpler visibility algorithm (still disabled).
svn-id: r45590
2009-11-01 03:32:28 +00:00
Florian Kagerer
0bf6303213 Kyra/FM-Towns: make sure that at least the synthesizer music plays when no cd audio tracks are found
svn-id: r45589
2009-11-01 01:31:23 +00:00
Martin Kiewitz
fdc6524fb3 SCI/newgui: fixing kDisposeWindow so that reanimate is correctly called (fixes cels disappearing after removing windows)
svn-id: r45588
2009-10-31 22:50:05 +00:00
Walter van Niftrik
4d2cfd5449 SCI: AvoidPath: Switch to A*
svn-id: r45586
2009-10-31 21:21:23 +00:00
Martin Kiewitz
0af1d66d2d SCI/newgui: added portrait data layout as comment (not completely done)
svn-id: r45585
2009-10-31 20:56:14 +00:00
Johannes Schickel
a510481202 Clean up comment a bit.
svn-id: r45583
2009-10-31 19:59:48 +00:00
Johannes Schickel
f709046167 Fix compilation.
svn-id: r45582
2009-10-31 19:55:49 +00:00
Johannes Schickel
fa506b5f0a Fix missing inventory in Kyrandia 1 PC98 16 color version, when loading a save via launcher or command line.
svn-id: r45581
2009-10-31 19:53:52 +00:00
Johannes Schickel
45208bc53d Fix certain scenes incorrectly appearing as fireberry bushes in floppy/FM-Towns/PC98 versions of Kyrandia 1.
svn-id: r45580
2009-10-31 19:52:46 +00:00
Martin Kiewitz
b29fd4dacd SCI/newgui: SciGuiPortrait created
svn-id: r45579
2009-10-31 19:48:28 +00:00
Vladimir Menshakov
6205c5f4de better scene cleanup
svn-id: r45578
2009-10-31 19:34:27 +00:00
Vladimir Menshakov
5f77a350a3 fixed bird-assert from chapter 1
svn-id: r45577
2009-10-31 19:03:44 +00:00
Vladimir Menshakov
b1671eb2d3 added missing cutscene
svn-id: r45576
2009-10-31 18:53:30 +00:00
Vladimir Menshakov
d033899a05 added cutscenes where needed, fixed invalid skipping of fullscreen messages.
svn-id: r45575
2009-10-31 18:49:47 +00:00
Johannes Schickel
67a7492fa2 Comment out unused variables.
svn-id: r45574
2009-10-31 18:36:13 +00:00
Johannes Schickel
93d26113fd Fix some memory leaks in Kyrandia 1 (this hopefully fixes crashes on NDS after a long playtime).
svn-id: r45572
2009-10-31 18:32:17 +00:00
Filippos Karapetis
58299f4bfd Added a comment that the current implementation that we got on drawing already scaled views is a temporary hack
svn-id: r45571
2009-10-31 18:26:31 +00:00
Torbjörn Andersson
d5421d93d4 Silenced GCC warning.
svn-id: r45570
2009-10-31 18:12:19 +00:00
Martin Kiewitz
cda9b293fd SCI/newgui: Changed code for graphSaveUpscaledHiresBox to not scale the position, its not needed and would actually result in a crash cause of 2 times scaling.
svn-id: r45569
2009-10-31 18:00:22 +00:00
Filippos Karapetis
9450661f72 Added some default directories
svn-id: r45568
2009-10-31 17:55:03 +00:00
Filippos Karapetis
c64fa600b7 - Added some TODOs
- Disabled the kGraph case used in KQ6 Windows for now, as it's problematic and crashes the game
- Added extra param to kDrawCel(), used in KQ6 Windows

The icon bar in KQ6 Windows is shown a bit better now

svn-id: r45567
2009-10-31 17:54:28 +00:00
Filippos Karapetis
2b29b53b47 Slight optimization to the 2x scaler
svn-id: r45566
2009-10-31 17:02:11 +00:00
Filippos Karapetis
6fd5fdcf7b Upscale the mouse cursor when the screen is upscaled. Also, reapplied some code which was accidentally reverted in commit #45562
svn-id: r45565
2009-10-31 15:44:59 +00:00
Martin Kiewitz
99cd8d5d2f SCI/newgui: kGraph support for Save-UpscaledHires-Box (not sure if coordinates are really hires, it seems that they are not)
svn-id: r45564
2009-10-31 15:25:47 +00:00
Martin Kiewitz
4b9066ef69 SCI: accidentally set newgui to default, reverting
svn-id: r45563
2009-10-31 14:41:28 +00:00
Martin Kiewitz
f36e9cbe4d SCI/newgui: UpscaledHires implemented including undithering support, cleanup
svn-id: r45562
2009-10-31 14:38:25 +00:00
Torbjörn Andersson
149d784d0b Kirben suggested using vs->bytesPerPixel instead of _bytesPerPixel when drawing
the corners on the flashlight. He's probably right, since 'vs' is what we are
drawing to.

svn-id: r45561
2009-10-31 13:43:46 +00:00
Torbjörn Andersson
2f7f5bb4f1 Fixed flashlight drawing in 16 bpp games. (Which probably means PC-Engine Loom
is the only game where it makes any difference.)

svn-id: r45560
2009-10-31 13:34:31 +00:00
Travis Howell
f7fcec1ce2 The verb images for distaff have no mask data, in PCE version of Loom.
svn-id: r45559
2009-10-31 13:15:49 +00:00
Torbjörn Andersson
773bc170a3 Fixed Valgrind warning caused by always reading four bytes at a time from the
cursor source buffer.

svn-id: r45558
2009-10-31 12:38:08 +00:00
Filippos Karapetis
43f476b571 Properly fixed putPixel() for scaled screens
svn-id: r45557
2009-10-31 12:19:35 +00:00
Filippos Karapetis
cd3f9336ab Cursor positioning now takes screen scaling into account
svn-id: r45556
2009-10-31 12:17:38 +00:00
Filippos Karapetis
71db8b851b Some more work on KQ6 hi res version - screen scaling should be done now, but other methods haven't been updated yet
svn-id: r45555
2009-10-31 10:54:19 +00:00
Travis Howell
d76c1c6552 Add patch from Tobias, for menu keys in PCE version of Loom, with minor change.
svn-id: r45554
2009-10-31 09:48:19 +00:00
Johannes Schickel
0867129399 Formatting.
svn-id: r45553
2009-10-30 23:44:12 +00:00
Filippos Karapetis
86cafd561f Some work on the kPortrait kernel function, used to show hires character portraits in the Windows CD version of KQ6
svn-id: r45552
2009-10-30 22:55:35 +00:00
Filippos Karapetis
1c158c52a1 Cleaned up kPlatform() a bit, and changed it to return appropriate values for the CD hires version of KQ6
svn-id: r45551
2009-10-30 22:53:00 +00:00
Filippos Karapetis
29fb3b0f3f Plugged some memory leaks in the new graphics code
svn-id: r45550
2009-10-30 22:50:21 +00:00
Johannes Schickel
92fdf79d5b Fixes for TEX and RTF output of "add_paragraph".
svn-id: r45549
2009-10-30 20:44:11 +00:00
Johannes Schickel
59eb37a76c Fix bug in "add_paragraph" in tools/credits.pl, now the "&" should be fine in credits.h again.
svn-id: r45547
2009-10-30 20:30:28 +00:00