Commit Graph

35043 Commits

Author SHA1 Message Date
Matthew Hoops
49a8462c5b Capitalize the word Sequel in The 11th Hour's title.
svn-id: r45643
2009-11-03 21:51:24 +00:00
Robert Špalek
b506b9f7c2 Removed an old FIXME
svn-id: r45642
2009-11-03 21:34:38 +00:00
Robert Špalek
0071829aee Implement properly stayOn instead of using walkOn
svn-id: r45641
2009-11-03 21:30:24 +00:00
Robert Špalek
9ad5e7461f Let setPath() store path with pixel precision, and update the map sprite when reloaded
svn-id: r45640
2009-11-03 21:05:26 +00:00
Max Horn
45308a2bd5 Fix for bug #2890038 (FT: Crashes when entering inventory)
svn-id: r45638
2009-11-03 20:49:53 +00:00
Max Horn
0fd0d1a09f SCI: Fix warning (declaration of 'FOO' shadows a member of 'this')
svn-id: r45637
2009-11-03 20:47:10 +00:00
Filippos Karapetis
55ebcf69e5 Turn off warning 4267 ("conversion from 'size_t' to xxx, possible loss of data"), thrown in 64bit builds
svn-id: r45636
2009-11-03 20:13:14 +00:00
Martin Kiewitz
7bed008f8e SCI/newgui: fixes for statusbar and transitions, so menubar shows up in intro of qfg1ega
svn-id: r45635
2009-11-03 19:43:21 +00:00
Martin Kiewitz
d758538eaa SCI/newgui: SciGuiMenu partially implemented
svn-id: r45634
2009-11-03 19:33:31 +00:00
Filippos Karapetis
34aaac37fc Removed some more hacks for accessing the segment manager
svn-id: r45631
2009-11-03 14:24:47 +00:00
Filippos Karapetis
74dba071b8 Fixed the deletion of cursorBitmap
svn-id: r45630
2009-11-03 14:20:57 +00:00
Lars Persson
a5058b2022 Use the new built in ScummVM.svg icon. Its now compatible with S60vx (previous version rendered very strangely)
svn-id: r45629
2009-11-03 12:48:32 +00:00
Filippos Karapetis
ff9c4908a7 Fixed a crash when loading in the old GUI
svn-id: r45628
2009-11-03 11:32:23 +00:00
Filippos Karapetis
f0c628cc3c Remove the SegManager-related hacks for the selector defines, as the segMan parameter is explicit now
svn-id: r45626
2009-11-03 09:01:12 +00:00
Filippos Karapetis
9ec6208e2a Plugged a memory leak
svn-id: r45625
2009-11-03 08:23:58 +00:00
Filippos Karapetis
bf8f8acb47 Don't keep a reference to SegManager, as it gets deleted when loading. Fixes a crash when loading games
svn-id: r45624
2009-11-03 08:23:02 +00:00
Robert Špalek
0d5627d8f1 Run the path obliqueing process repeatedly until it converges.
svn-id: r45623
2009-11-03 03:38:28 +00:00
Robert Špalek
75bf8237b0 Greatly improved the quality of obliqueing the shortest path.
The current algorithm is much better than the original player'ss one and it
find really nice curved paths.

Also, started preparing interface for actually walking along this path.

svn-id: r45622
2009-11-03 03:24:59 +00:00
Max Horn
e959ef33e5 TINSEL: Small correction to the previous hotfix for _vm->_config crash
svn-id: r45621
2009-11-02 23:48:21 +00:00
Max Horn
d10fe42416 TINSEL: Fix regression caused by the introduction of _vm->_config; proper fix will be introduced later, when dialogs.cpp gets objectified
svn-id: r45620
2009-11-02 23:42:30 +00:00
Walter van Niftrik
7f8a8732a1 SCI: Fix hoyle hack
svn-id: r45619
2009-11-02 23:06:30 +00:00
Max Horn
26981a5ffc TINSEL: Add isValidObject(OBJECT *obj) function; make objectList & currentCD static vars; merge two logic blocks ('ifs') in DoRestoreSceneFrame
svn-id: r45618
2009-11-02 21:57:16 +00:00
Max Horn
5cf868b757 TINSEL: Turn config code into a simple C++ class
svn-id: r45617
2009-11-02 21:56:29 +00:00
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
400ee8c461 Enhance VOC debug output
svn-id: r45615
2009-11-02 21:42:21 +00:00
Max Horn
3a2833867f SCI: Fix warning about unused variable
svn-id: r45614
2009-11-02 20:33:34 +00:00
Martin Kiewitz
abf63e1be9 SCI/newgui: Removed GuiCast structure
svn-id: r45613
2009-11-02 19:50:17 +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
Robert Špalek
ab3eb81dfb Little clean-up after the refactoring.
svn-id: r45609
2009-11-02 05:37:17 +00:00
Robert Špalek
6de74446ab Split loop() into several cleaned helper methods
svn-id: r45608
2009-11-02 05:31:03 +00:00
Robert Špalek
c45f0343f4 Refactored running loop().
- shouldExitLoop() is a bool again and introduced new flag isReloaded() instead
  of adding special hacky value 2
- loop() accepts 2 parameters: loop substatus and shouldExit flag, because each
  caller previously had to set and restore these manually.  loop() now also
  tests whether the substatuses are properly nested.  reordered the
  loop-exitting code.
- renamed loop substatuses to logical names
- enterNewRoom() returns bool whether loop() should continue so that start()
  doesn't have to test and clear shouldEndProgram().  it doesn't need
  force_reload as a parameter anymore.
- dialog selections use new inner substatus instead of outer substatus, for
  consistency

svn-id: r45607
2009-11-02 02:28:43 +00:00
Robert Špalek
9f711bd0ce Commented the rest of the loop() logic
svn-id: r45606
2009-11-01 23:20:46 +00:00
Robert Špalek
9ad86a800a Fix SIGSEGV when quitting the game during playing sounds
svn-id: r45605
2009-11-01 23:20:19 +00:00
Robert Špalek
f77446a500 Commented on loop() before refactoring.
svn-id: r45604
2009-11-01 23:04:56 +00:00
Johannes Schickel
8a7c5dbc6f Add command line parameter to automatically create a search table entry from a given file + offset/size pair.
svn-id: r45603
2009-11-01 22:27:10 +00:00
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