Commit Graph
1475 Commits
Author SHA1 Message Date
Martin Kiewitz e8262d989e SCI: adding code for kPalVary ticks == 0 case, fixes pharkas
svn-id: r50084
2010-06-20 16:48:52 +00:00
Martin Kiewitz 8fcb14d235 SCI: adding kPalVary update call to kFrameout - it's getting morning now in gabriel knight 1
svn-id: r50083
2010-06-20 16:36:34 +00:00
Martin Kiewitz b016c16300 SCI: some kPalVary support - intro of island dr. brain works fine now
svn-id: r50082
2010-06-20 16:31:24 +00:00
Martin Kiewitz 7ce739f51b SCI: kPalVary - cleanup and some more code
svn-id: r50081
2010-06-20 15:01:31 +00:00
Martin Kiewitz 15ae4d8f59 SCI: fix r50078, we need to update timestamp for inbetween SCI1.1 games, but not on kPortrait palette changes
svn-id: r50079
2010-06-20 13:38:24 +00:00
Martin Kiewitz d2a3f59bfb SCI: update timestamp like before for inbetween SCI1.1 games
svn-id: r50078
2010-06-20 13:30:40 +00:00
Martin Kiewitz 30f6e7824b SCI: update sys palette timestamp only on kDrawPic in SCI1.1, fixes intro of island of dr. brain
svn-id: r50077
2010-06-20 13:25:08 +00:00
Martin Kiewitz 871c9bddde SCI: removing unneeded parameters inside SciPalette, cleanup of SciPalette
svn-id: r50076
2010-06-20 13:15:45 +00:00
Martin Kiewitz 36ca2ce421 SCI: some cleanup for kPalVary
svn-id: r50074
2010-06-20 12:21:57 +00:00
Martin Kiewitz 26e4e0e345 SCI: cleanup view decompression code
svn-id: r50053
2010-06-19 17:12:17 +00:00
Martin Kiewitz 602b32175a SCI: fixing detection of vga sci11 views for ega games (original change in r50025)
svn-id: r50028
2010-06-18 18:55:17 +00:00
Martin Kiewitz 3197dfc033 SCI: added more description about changes in r50025
svn-id: r50026
2010-06-18 17:53:35 +00:00
Martin Kiewitz 636ef64c68 SCI: making vga views work in ega games :P
svn-id: r50025
2010-06-18 17:40:13 +00:00
Martin Kiewitz 8a8480c0ca SCI: fix typo when setting EGA palette
svn-id: r50023
2010-06-18 17:20:09 +00:00
Filippos Karapetis 680f7c897a Fixed a problem in kAnimate which occurred when a list was modified by a call (e.g. in KQ1 demo, PQ2)
svn-id: r50022
2010-06-18 15:40:18 +00:00
Martin Kiewitz 919c348c5a SCI: pseudo-implemented 0x72 and 0x73 for kDisplay used by longbow-demo, although sierra sci doesn't support them at all
svn-id: r50016
2010-06-18 13:02:48 +00:00
Martin Kiewitz 08ff57cc97 SCI: partially revert r49983 - all of those are not implemented in sierra sci or not even pseudo-valid in there. all of those seem to be script bugs
svn-id: r50007
2010-06-18 05:55:27 +00:00
Filippos Karapetis ac4659b92a Added several unimplemented kDisplay subops, as well as a new sound command, found in the demo of Longbow
svn-id: r49983
2010-06-18 01:11:00 +00:00
Filippos Karapetis 6946167f34 Strict mode: error out on unhandled subops, to note if they actually exist and where they're used
svn-id: r49975
2010-06-17 23:53:30 +00:00
Filippos Karapetis db70d66e4a Strict mode: Changed several warnings due to logic bugs into errors. If an error pops up from these ones, please add the game where it occurred and the steps to reproduce the error before turning it into a warning
svn-id: r49973
2010-06-17 23:50:28 +00:00
Filippos Karapetis 50c3a087e3 Reduced header dependency
svn-id: r49970
2010-06-17 23:20:39 +00:00
Max Horn 359be0c066 SCI: Change SciEngine's 'char *getGameID()' to 'Common::String getGameId()'
svn-id: r49968
2010-06-17 23:14:34 +00:00
Max Horn a2bcf9ac31 SCI: Rename sciEvent to SciEvent
svn-id: r49960
2010-06-17 23:11:12 +00:00
Max Horn 8e07a1e167 SCI: Moved the event code a little bit around.
* Move sleep() from EventManager to SciEngine
* Rename EventManager methods: get -> getSciEvent, and
  getFromScummVM -> getScummVMEvent
* Make scancode_rows static const
* Turn altify & numlockify from EventManager methods into static
  functions (and comment out the currently unused numlockify)

svn-id: r49959
2010-06-17 23:10:37 +00:00
Martin Kiewitz 27741ee970 SCI: dont subtract offTop on wmgrPort when using old gfx functions - fixes about window in pq2
svn-id: r49947
2010-06-17 19:42:34 +00:00
Martin Kiewitz 5daa17473b SCI: applying forceRealMerge change to pq1 and qfg3 demo as well (see r49936) for now
svn-id: r49938
2010-06-17 16:36:01 +00:00
Martin Kiewitz 7bb48adda7 SCI: slightly change comment from r49936
svn-id: r49937
2010-06-17 16:09:06 +00:00
Martin Kiewitz 00ac852dc8 SCI: implement workaround for laura bow 2 demo, because that interpreter uses the old real palette merging from sci1 - some views contain a palette that has all colors marked as being used, which would overwrite sysPalette with blacks
svn-id: r49936
2010-06-17 16:06:01 +00:00
Matthew Hoops 6ee4bf06ad Fix a valgrind warning in GfxCursor. Thanks to digitall for finding it.
svn-id: r49917
2010-06-17 03:53:13 +00:00
Martin Kiewitz fea248ae2f SCI: make umlauts work in kFrameout for sci32
svn-id: r49890
2010-06-15 20:23:25 +00:00
Martin Kiewitz c9ba23f2b4 SCI: only set mouse position, when cursor is visible (fixes non-stop, but escapeable mouse position setting to 0, 0 in eco quest 1 floppy during intro)
svn-id: r49874
2010-06-15 17:41:33 +00:00
Martin Kiewitz 831e626ccd SDL: only change mouse cursor, when mouse is currently within our window, also enable mouse position changing again for SCI
svn-id: r49866
2010-06-15 16:58:03 +00:00
Martin Kiewitz b25aba1d1e SCI: SciGui/SciGui32 gone for good...
svn-id: r49860
2010-06-15 15:44:24 +00:00
Martin Kiewitz ba2de6dfa4 SCI: putting SciGui::init into SciEngine, removing it from SciGui(32)
svn-id: r49854
2010-06-15 13:34:40 +00:00
Martin Kiewitz af5346e7ab SCI: calling wait() directly and removing it from SciGui
svn-id: r49853
2010-06-15 13:14:23 +00:00
Martin Kiewitz 891b568fde SCI: move textSize and textFonts and textColors inside gfxText16
svn-id: r49851
2010-06-15 13:01:07 +00:00
Martin Kiewitz db4533533a SCI: fix changes from r49806
svn-id: r49839
2010-06-15 12:21:26 +00:00
Max Horn 79c9be5d96 Reduce header dependencies
svn-id: r49836
2010-06-15 12:20:03 +00:00
Martin Kiewitz 59d0035b03 SCI: move portrait methods to gfxPaint16
svn-id: r49806
2010-06-15 12:01:49 +00:00
Eugene Sandulenko a8a44a07d1 SCI: Fix timer.
installTimerProc requires interval specified in milliseconds,
not microseconds. Correct palVary method accordingly.

svn-id: r49772
2010-06-15 10:51:10 +00:00
Filippos Karapetis 13aba8747a Throttle screen updates to 60fps in some screen transition effects as well
svn-id: r49690
2010-06-15 10:09:42 +00:00
Matthew Hoops 303c7b0a8d Ignore and remove invalid plane and item objects in kFrameout. Fixes loading in-game in GK1.
svn-id: r49663
2010-06-14 16:58:15 +00:00
Filippos Karapetis 01d53a6216 Disabled two cases of findObjectByName() in SCI0 early games
svn-id: r49639
2010-06-13 22:01:10 +00:00
Martin Kiewitz 3269e5cc4c SCI: adjust priority bottom, if its 200 to avoid possible out of bounds (sierra actually does the same)
svn-id: r49592
2010-06-11 09:17:11 +00:00
Filippos Karapetis eb4ec596cd Use the SELECTOR() macro for readability
svn-id: r49563
2010-06-10 09:18:57 +00:00
Filippos Karapetis 5d71ae952f The EngineState is no longer recreated when a game is restored, thus we don't need to refresh pointers to it
svn-id: r49549
2010-06-09 20:12:25 +00:00
Filippos Karapetis 32d7f7ddb0 Disabled the mouse warping code, as it can be annoying in windowed mode
svn-id: r49542
2010-06-09 14:16:00 +00:00
Filippos Karapetis 536b2614e8 Globals from script 0 are now initialized in script_init_engine(), and are accessed from the relevant variables pointer. Removed direct reference to script 0 from the engine state
svn-id: r49536
2010-06-09 09:17:48 +00:00
Willem Jan Palenstijn 95b080f60b Fix compile errors
svn-id: r49535
2010-06-09 08:49:37 +00:00
Filippos Karapetis 5cb311ee2c Renamed the SciEvent class to EventManager, to separate it from the sciEvent structure, and removed it from the engine state
svn-id: r49534
2010-06-09 07:59:42 +00:00