Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
3a2833867f
SCI: Fix warning about unused variable
...
svn-id: r45614
2009-11-02 20:33:34 +00:00
Martin Kiewitz
10a902735a
SCI: SciGuiMenu created, kMenu-related stuff now using SciGui
...
svn-id: r45612
2009-11-02 17:59:19 +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
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
Johannes Schickel
f709046167
Fix compilation.
...
svn-id: r45582
2009-10-31 19:55:49 +00:00
Martin Kiewitz
b29fd4dacd
SCI/newgui: SciGuiPortrait created
...
svn-id: r45579
2009-10-31 19:48:28 +00:00
Johannes Schickel
67a7492fa2
Comment out unused variables.
...
svn-id: r45574
2009-10-31 18:36:13 +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
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
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
Martin Kiewitz
e87808d89b
SCI: validate_variable fixed and now using bool instead of int (fixes pq3 demo crash on my computer)
...
svn-id: r45543
2009-10-30 18:01:27 +00:00
Filippos Karapetis
57266a7cba
- Removed status_bar_foreground and status_bar_background variables from the engine state
...
- Implemented clearMenuBar() in the new graphics code
- Removed the "status_bar" command, which was used to set custom colors for the status bar
svn-id: r45538
2009-10-30 14:39:26 +00:00
Martin Kiewitz
3ec76350ec
SCI: kStrAt offset checking fixed
...
svn-id: r45537
2009-10-30 14:22:22 +00:00
Filippos Karapetis
ff284c9f5b
Remove unused includes when INCLUDE_OLDGFX is not set. Implemented the full screen updates that the current menu code is doing using new graphics functions (still unfinished). Some cleanup.
...
svn-id: r45536
2009-10-30 12:33:05 +00:00
Filippos Karapetis
932cd54bbe
Rewrote the avoidpath debug code to use new graphics functions
...
svn-id: r45533
2009-10-30 11:26:00 +00:00
Martin Kiewitz
0c2ab71829
SCI: kStrAt / dont do call, when offset exceeds maxSize. fixes crash in kq5
...
svn-id: r45530
2009-10-30 10:06:35 +00:00
Walter van Niftrik
27df03a18e
SCI: AvoidPath: Add workaround for pathfinding problem when Patti walks to
...
control room in LSL5, room 660.
svn-id: r45522
2009-10-30 04:47:02 +00:00
Walter van Niftrik
dba613ecd2
SCI: AvoidPath: Don't discard contained-access polygon when starting point
...
is right next to it.
svn-id: r45521
2009-10-30 03:54:50 +00:00
Filippos Karapetis
c8546fd92f
Stop SQ4 floppy from updating the unused sq4sg.dir file when deleting a saved game
...
svn-id: r45507
2009-10-29 20:31:35 +00:00
Filippos Karapetis
89811d1ea4
Cleanup
...
svn-id: r45506
2009-10-29 19:32:27 +00:00
Filippos Karapetis
ebfcea35ec
- Implemented savegame deletion for SQ4 floppy
...
- Added a more proper way to disable the "Change Directory" button, by checking its name, rather than the string it contains
svn-id: r45504
2009-10-29 18:07:39 +00:00
Filippos Karapetis
6eea032245
Disable the "Delete" button for all versions of SQ4 floppy, and the "Change Directory" button for all games (English and non-English versions)
...
svn-id: r45503
2009-10-29 16:27:23 +00:00
Filippos Karapetis
caa5136b5c
Automatically create memory.drv (the file containing the LSL5 password) for non-English versions of LSL5, so that the games don't abort if it can't be found.
...
svn-id: r45502
2009-10-29 16:05:24 +00:00
Martin Kiewitz
8178d548eb
SCI/newgui: Defining color white and others in SciGuiScreen and using that. Also clears screen with 0 on sci1.1 games (needs further investigation), fixes pictures
...
svn-id: r45500
2009-10-29 14:16:20 +00:00
Filippos Karapetis
e5e80dd6d6
Fixed the deletion of save games - the wrong save game would be deleted with the previous code, as we sort the list by date
...
svn-id: r45499
2009-10-29 09:58:36 +00:00
Filippos Karapetis
fa3305ee01
Moved some menu code outside the INCLUDE_OLDGFX safeguards
...
svn-id: r45496
2009-10-29 01:10:10 +00:00
Filippos Karapetis
8150fc07bc
Added a workaround for the casino door in LSL1
...
svn-id: r45494
2009-10-28 23:32:28 +00:00
Filippos Karapetis
2d9d9bca13
Changed some of the menu code to use new graphics functions
...
svn-id: r45493
2009-10-28 23:04:56 +00:00
Filippos Karapetis
21323a8d12
Wrapped some more oldgui-specific code around INCLUDE_OLDGFX safeguards
...
svn-id: r45492
2009-10-28 22:01:42 +00:00
Filippos Karapetis
d62342b32b
Wording. Added warnings for unimplemented menu-related functions in the new GUI code
...
svn-id: r45489
2009-10-28 21:49:16 +00:00
Filippos Karapetis
5d037f64ef
Added detection for pq1, cnick-lslcasino and cnick-longbow to the fallback detector. Simplified the code which distinguishes between demo and full versions. Some cleanup
...
svn-id: r45488
2009-10-28 21:46:27 +00:00
Martin Kiewitz
5f71650520
SCI/newgui: BaseSetter moved to SciGui
...
svn-id: r45480
2009-10-28 19:19:35 +00:00
Martin Kiewitz
88e56f87eb
SCI/newgui: IsItSkip moved into SciGui
...
svn-id: r45479
2009-10-28 19:10:39 +00:00
Martin Kiewitz
5abe6c8054
SCI/newgui: Cleanup
...
svn-id: r45478
2009-10-28 18:59:11 +00:00
Filippos Karapetis
fbbd0b1575
Fixed the rectangle top inside kBaseSetter()
...
svn-id: r45466
2009-10-28 14:45:26 +00:00
Filippos Karapetis
0851b00d4f
Cleanup
...
svn-id: r45465
2009-10-28 14:35:47 +00:00
Filippos Karapetis
6ac2680e82
Oops, removed leftover code (z was taken into account after all, but in a different place...)
...
svn-id: r45464
2009-10-28 14:25:39 +00:00
Filippos Karapetis
394fc76719
Rewrote kBaseSetter() to use new graphics functions and behave like the original, and fixed a bug in the process (the previous code ignored z when calculating the height)
...
svn-id: r45463
2009-10-28 14:23:23 +00:00
Filippos Karapetis
0b83a8eec0
Reimplemented isItSkip() using new graphics code
...
svn-id: r45461
2009-10-28 13:43:09 +00:00
Filippos Karapetis
04ab6bc9fc
Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard (defined in sci.h)
...
svn-id: r45459
2009-10-28 13:20:30 +00:00
Filippos Karapetis
7e0f8a9af9
Added proper detection and handling of transitive SCI1-SCI1.1 games, like PQ1 VGA. These used SCI1 resources and compression with a SCI1.1 kernel (thanks to waltervn's observations)
...
svn-id: r45420
2009-10-26 21:41:41 +00:00
Filippos Karapetis
b5feeb60b6
Moved the cel count calculation to the new graphics code
...
svn-id: r45379
2009-10-25 22:33:08 +00:00
Filippos Karapetis
1a4b617398
- Removed graphics options code from the old GUI. Almost all of them are not supposed to be modified by the user (e.g. the way lines and brushes are drawn), and we can implement any of them again if needed in the new GUI (but they shouldn't really be needed).
...
- Added a config option to disable dithering in the new GUI if requested, called "undither", which is set to true by default and can be changed to false if needed per game
- The per-resource palette code has been removed for now, to be replaced by regular hashmaps (once the FreeSCI scifx reading code has been converted)
svn-id: r45378
2009-10-25 20:53:07 +00:00
Martin Kiewitz
fa627f4233
SCI: kGameIsRestarting - another change, setting back delay back to 30msecs, but no delay during initial 50 calls. This seems to make qfg2 and iceman happy.
...
svn-id: r45376
2009-10-25 20:12:12 +00:00
Martin Kiewitz
c0235a268d
SCI: kGameIsRestarting - changing speed throttler to 10 msecs, lsl5 is still "somewhat" playable, codename iceman and qfg2 didnt show some animations cause of the higher delay
...
svn-id: r45375
2009-10-25 20:03:10 +00:00
Martin Kiewitz
f0fc4810fd
SCI: kAddToPic - removing support for argc==0 case, if this really gets used somewhere, we need to set _picNotValid in that case
...
svn-id: r45372
2009-10-25 18:43:23 +00:00