76 Commits

Author SHA1 Message Date
David Turner
067fbe23f6 Fix for Lure memory error indicated by Valgrind on Restart/Restore Screen (Temptress over Castle).
This screen is displayed if you lose the fight with the Skorl in the Dragon Caves etc.

This fix should be reviewed and then backported to v1.1.0 branch.

svn-id: r48421
2010-03-30 02:13:49 +00:00
Max Horn
bce959e046 LURE: Remove evil 'using namespace' from header files
svn-id: r47396
2010-01-19 23:48:55 +00:00
Max Horn
2e964baeef Some const correctness changes; cleanup
svn-id: r44850
2009-10-09 21:47:33 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Filippos Karapetis
5028d5a68b Reverted my commit #44290 - apparently, it was a bad idea, as g_engine is a hack
svn-id: r44311
2009-09-24 17:07:27 +00:00
Filippos Karapetis
a70351e5ea Changed some references from LureEngine to the global g_engine (e.g. calls to shouldQuit()), to minimize places where LureEngine is referenced
svn-id: r44290
2009-09-24 06:53:03 +00:00
Johannes Schickel
ac5a6552ca Switched LURE to use a single central RandomSource instance, instead of (sometimes) creating a new RandomSource every function call.
svn-id: r43715
2009-08-24 23:04:25 +00:00
Max Horn
9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Christopher Page
17ce8db211 Lure works with the new GMM implementation
svn-id: r32996
2008-07-10 22:34:48 +00:00
Christopher Page
6e3474896c Kyra and Lure are now using the new _quit flag
svn-id: r32772
2008-06-25 00:55:18 +00:00
Filippos Karapetis
6a9acd7a5e Replaced ManagedList with Common::SharedPtr in the rest of the lure engine
svn-id: r31420
2008-04-06 12:00:37 +00:00
Torbjörn Andersson
ff688574c4 Changed spaces to tabs.
svn-id: r31362
2008-04-02 04:23:00 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paweł Kołodziejski
b74d38586d fixed potential unitialized variable
svn-id: r30574
2008-01-19 20:53:28 +00:00
Paul Gilbert
e6c20003c0 Enhanced Surface::writeSubstring to crop any string that exceeds the width of the surface - this fixes a visual glitch in the German version where some lines were so long they were exceeding the size of the screen
svn-id: r30547
2008-01-18 10:49:48 +00:00
Paul Gilbert
00ecb126e3 Bugfix for the position and size of the copy protection dialog instructions in the German version
svn-id: r30524
2008-01-17 09:05:56 +00:00
Paul Gilbert
b535b070f3 Fix to show talk dialogs in EGA mode using the EGA palette
svn-id: r30286
2008-01-06 02:09:18 +00:00
Paul Gilbert
6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Paul Gilbert
9e02b32220 Made standard EGA background colour a constant
svn-id: r30233
2008-01-05 11:24:37 +00:00
Paul Gilbert
10719d5a12 Added extra handling for EGA dialogs, and added formalised parameters/methods for text positioning
svn-id: r30226
2008-01-05 10:34:34 +00:00
Paul Gilbert
b2d2bd6f2d Room backgrounds now display in EGA mode
svn-id: r30138
2008-01-02 03:36:19 +00:00
Paul Gilbert
99dfb8bcbc Added support for using scroll wheel for making selections in the Save/Restore dialog and action lists
svn-id: r30070
2007-12-29 09:51:25 +00:00
Paul Gilbert
52dc147f8c Added mouse scrolling support to action menus and the save/restore dialog
svn-id: r30065
2007-12-29 00:31:15 +00:00
Paul Gilbert
67a49e712a Bugfix for string decoding to use the article of the destination character rather than the talking character
svn-id: r30036
2007-12-28 07:45:22 +00:00
Paul Gilbert
b4043cb403 Bugfix for correctly handling \n characters in WordWrap method
svn-id: r29903
2007-12-19 01:47:45 +00:00
Paul Gilbert
550aea90ff Bugfix for font sizes indexing - dereferencing a character > 128 was giving a negative index
svn-id: r29900
2007-12-18 08:05:19 +00:00
Paul Gilbert
e2e846a4b2 Added extra debug statements to the talk dialog display process
svn-id: r29894
2007-12-17 11:23:19 +00:00
Kostas Nakos
e861cf567d use the virtual keyboard facilities if available, when needed
svn-id: r29882
2007-12-16 20:01:41 +00:00
Paul Gilbert
69b1c7b4dd Dynamic fix for several incorrect accented characters in the Italian version
svn-id: r29836
2007-12-12 09:45:51 +00:00
Paul Gilbert
c6871d145e Bugfix to return correct article indexes
svn-id: r29835
2007-12-12 08:56:34 +00:00
Paul Gilbert
2b9859f2ff Redeveloped the processing of language item article prefixes to match how the original handles the various languages
svn-id: r29833
2007-12-12 08:49:09 +00:00
Paul Gilbert
1af72d0971 Changed over warning messages for save/load errors from the debug console to their own dialog
svn-id: r29814
2007-12-10 09:40:49 +00:00
Paul Gilbert
770d0b88d6 Added extra debug statements
svn-id: r29774
2007-12-09 06:06:22 +00:00
Paul Gilbert
a39ddab09a Added new debug category for string handling
svn-id: r29772
2007-12-09 05:57:08 +00:00
Paul Gilbert
e204af821f Added some missing deletes of temporary objects
svn-id: r29762
2007-12-08 10:30:43 +00:00
Paul Gilbert
bc58491c75 Modified the loadScreen method to accommodate some screens decoding to a single byte more than the actual screen size
svn-id: r29691
2007-12-02 07:24:41 +00:00
Paul Gilbert
804c821ab1 Enhanced savegames to store any active dialog when the game was saved
svn-id: r29689
2007-12-02 04:49:33 +00:00
Torbjörn Andersson
a77f6157dc Fixed Valgrind warning by freeing _lines with Memory::dealloc() insead of
delete.

svn-id: r29680
2007-12-01 15:37:48 +00:00
Paul Gilbert
c7b3130b66 Bugfix for the Escape key to close the Save/Restore dialog
svn-id: r29609
2007-11-22 11:21:04 +00:00
Paul Gilbert
2393e87a7a Added a check to keep the cursor active when entering a savegame name on backends that provide a virtual keyboard
svn-id: r29578
2007-11-20 12:48:59 +00:00
Paul Gilbert
724d99b74f Changed the copy protection dialog event loop so the fourth digit pressed will be briefly displayed
svn-id: r29577
2007-11-20 12:39:24 +00:00
Paul Gilbert
5eb9b10bbd Changed calls to pollEvent to be in while loops to ensure all pending events get processed
svn-id: r29576
2007-11-20 12:26:06 +00:00
Torbjörn Andersson
ade0b5a212 Fixed sluggish mouse cursor on restart/restore screen.
svn-id: r29555
2007-11-18 10:08:43 +00:00
Paul Gilbert
641ff5e9b7 Sound is now paused when displaying menu dialogs
svn-id: r29272
2007-10-28 03:34:10 +00:00
Paul Gilbert
a0fce0c5a1 Fixed MinGW compilation warning
svn-id: r29253
2007-10-24 10:07:38 +00:00
Paul Gilbert
5635256f30 Implemented gradual display of text in talk dialogs
svn-id: r29251
2007-10-24 10:03:11 +00:00
Paul Gilbert
199e60b9a0 Finally tracked down a bug that sometimes caused word wrapping to fail
svn-id: r29164
2007-10-07 11:05:09 +00:00
Paul Gilbert
f0f813b824 Added support for original copy protection, in any anyone ever wants to see it
svn-id: r29065
2007-09-23 22:09:25 +00:00
Paul Gilbert
b2e97060ad Initial sound implementation
svn-id: r28917
2007-09-16 04:06:49 +00:00
Max Horn
efbef7880b Fixed code formatting (hanging braces); added static/const keywords to data tables; merged Hotspot::doLookAt and doLookThrough code
svn-id: r28880
2007-09-08 11:18:35 +00:00