Commit Graph

35416 Commits

Author SHA1 Message Date
Filippos Karapetis
2aeb892e06 Cleanup
svn-id: r45667
2009-11-04 14:27:03 +00:00
Filippos Karapetis
c8fbac1517 - Changed the segment manager to be a static part of the engine, and stopped deleting and recreating it when restoring games
- Merged game_exit(), script_free_vm_memory() and script_free_engine()
- Cleanup

svn-id: r45666
2009-11-04 14:22:17 +00:00
Filippos Karapetis
f83d7c6339 Reapplied the LSL1 casino workaround, which got disabled accidentally in commit #45661
svn-id: r45665
2009-11-04 14:17:14 +00:00
Filippos Karapetis
7030588e22 Removed the reference to EngineState from the SciGuiGfx class
svn-id: r45664
2009-11-04 13:26:43 +00:00
Martin Kiewitz
205a6c2299 SCI: forgot to adjust gui32 as well
svn-id: r45662
2009-11-04 12:57:11 +00:00
Martin Kiewitz
429c06c5ae SCI/newgui: kGraph / InitPriority changed to reflect sci0 implementation, also moved code
svn-id: r45661
2009-11-04 12:54:27 +00:00
Filippos Karapetis
12e3375f3b Removed the reference to SciGuiCursor from EngineState
svn-id: r45660
2009-11-04 12:19:05 +00:00
Filippos Karapetis
effdfcd4b8 Added references to the scaleX and scaleY selectors, used for SCI1.1 view scaling
svn-id: r45659
2009-11-04 12:16:08 +00:00
Filippos Karapetis
f755311114 priority_first and priority_last are not used by the new drawing code, thus the new code didn't handle priority changes by kGraph()
svn-id: r45658
2009-11-04 11:52:11 +00:00
Filippos Karapetis
f5d1ca32f2 Fixed compilation when INCLUDE_OLDGFX is not defined
svn-id: r45657
2009-11-04 11:48:17 +00:00
Filippos Karapetis
7d00c4a7f1 Moved the audio CD handling code inside the AudioPlayer class. Some cleanup
svn-id: r45656
2009-11-04 11:22:46 +00:00
Filippos Karapetis
2dbf6662fc Moved the sound sync code inside the AudioPlayer class
svn-id: r45655
2009-11-04 10:20:25 +00:00
Filippos Karapetis
611f5dd95f Moved sound sync related variables inside the AudioPlayer class and fixed compilation
svn-id: r45654
2009-11-04 09:49:28 +00:00
Filippos Karapetis
597524b255 Moved most of the code for playing sound effects and speech into a separate class
svn-id: r45653
2009-11-04 09:36:18 +00:00
Filippos Karapetis
66d3540f2c Cleanup
svn-id: r45652
2009-11-04 09:31:35 +00:00
Paul Gilbert
a6f1280fcc Added support for loading the game's object list
svn-id: r45651
2009-11-04 08:38:32 +00:00
Filippos Karapetis
f45a1a5a0b Provide compatibility with 2000/XP, where the "choice" command is not available, and made the prompt more verbose
svn-id: r45650
2009-11-04 08:05:12 +00:00
Robert Špalek
f147fbb936 Properly animate the last phase of the walk before running callbacks
svn-id: r45649
2009-11-04 04:27:31 +00:00
Robert Špalek
14f2685134 Implemented and debugged the walking framework.
The hero does not walk yet (it still teleports to the target immediately),
but that is just because the actual walking algorithm is left trivial first.
However, the main game loop, callbacks, and waiting all already work with
the general framework.

svn-id: r45648
2009-11-04 00:42:37 +00:00
Filippos Karapetis
692aea8e8d Added batch files to create default project files using the create_msvc tool
svn-id: r45647
2009-11-03 23:20:28 +00:00
Johannes Schickel
4ec4eedf49 Enable FLAC by default for MSVC, since our new prebuilt library package supports FLAC as well.
svn-id: r45646
2009-11-03 23:06:25 +00:00
Filippos Karapetis
400f31ff98 Deleted all the MSVC project files, since they can be built quickly and reliably from the gcc files using the create_msvc tool. Added some brief instructions on how to use the tool.
svn-id: r45645
2009-11-03 22:56:22 +00:00
Robert Špalek
930910fe5c Created walking-callback infrastructure and converted the code to use it
svn-id: r45644
2009-11-03 22:13:37 +00:00
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