Commit Graph

69 Commits

Author SHA1 Message Date
Paul Gilbert
b9a0e32c3c Changed NPC schedules to be loaded when an NPC is activated - this avoids an issue with the Castle Skorl's pre-activation room number being invalid room #99
svn-id: r34748
2008-10-05 10:25:35 +00:00
Paul Gilbert
eaeb1587f4 Fix for missing data in the savegame format that could result in not being able to talk to Goewin in the apothecary after restoring a savegame
svn-id: r33057
2008-07-14 10:33:57 +00:00
Paul Gilbert
93de8c71b8 Fixed compiler warning of unused variable
svn-id: r32239
2008-05-24 01:05:32 +00:00
Paul Gilbert
76c43c94d1 Changed the delayed sequence list from using a system milliseconds expiry point to a milliseconds countdown - this should fix potential problems that could arise if a modal dialog was kept on-screen too long
svn-id: r32237
2008-05-24 00:54:04 +00:00
Johannes Schickel
600ab40bca Changed all delete [] usages to delete[].
svn-id: r31927
2008-05-07 14:31:45 +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
Paul Gilbert
9ac46607fc Bugfix for loading older savegame versions
svn-id: r30879
2008-02-16 05:12:32 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paul Gilbert
2195528ca0 Got rid of the experimental NPC Schedule store in favour of moving the NPC schedules from the active hotspot class back into the hotspot data class, similiar to how the original game implements them
svn-id: r30629
2008-01-24 08:14:48 +00:00
Paul Gilbert
c9b6822438 Fixed shadowing warning that I missed
svn-id: r30584
2008-01-20 03:42:42 +00:00
Paul Gilbert
99e2c7c1d6 Fixed bug with saving of cached actor schedules and added saving of talk data flags
svn-id: r30582
2008-01-20 03:38:16 +00:00
Torbjörn Andersson
89f15fe482 Fixed warnings.
svn-id: r30379
2008-01-10 19:06:38 +00:00
Paul Gilbert
d804bad551 Replaced the Blacksmith hack with an NPC Schedules list that stores the active schedule of an NPC when it's deactivated in case it's later reactivated again.
svn-id: r30378
2008-01-10 13:37:34 +00:00
Paul Gilbert
1d4efdcaa1 Added proper reset of barmen data when game is restarted, and added missing barman data to savegames
svn-id: r30367
2008-01-10 09:42:51 +00:00
Paul Gilbert
fee6362147 Bugfix for incorrect data being saved for the current NPC the barmen are serving
svn-id: r30365
2008-01-10 09:22:46 +00:00
Paul Gilbert
34c3c89267 Fix for #1866777 - adds saving of hotspot layer to savegames
svn-id: r30347
2008-01-09 09:13:39 +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
Chris Apers
1cfadf725c Hack to workaround struct padding added by some compilers (mainly on PalmOS)
svn-id: r29777
2007-12-09 10:39:57 +00:00
Paul Gilbert
2e3866b6f4 Identified some more Endian issues (thanks to Max)
svn-id: r29533
2007-11-17 10:21:27 +00:00
Paul Gilbert
75382bdadc Added saving of the current hotspot animation record to savegames
svn-id: r29528
2007-11-17 08:44:38 +00:00
Paul Gilbert
25d22b2b42 Check to prevent Ratpouch saying 'Excuse me' redundantly
svn-id: r29458
2007-11-09 08:21:15 +00:00
Paul Gilbert
547716a0df Added a talkerId field to hotspots to better handle characters being talked to
svn-id: r29254
2007-10-24 10:09:06 +00:00
Paul Gilbert
8ec0e447c2 Added support for setting animations by their index rather than their offset, allowing for easier multi-language support. Also fixed translation of inventory window
svn-id: r29169
2007-10-07 11:12:46 +00:00
Paul Gilbert
cb2f6ce092 Fixed action lists to sort correctly for non-English languages
svn-id: r29144
2007-09-30 12:35:37 +00:00
Paul Gilbert
6107a9f824 Added missing endian wrappers from Room Exit structure loading
svn-id: r29082
2007-09-24 00:32:24 +00:00
Paul Gilbert
b4cff6b9bd Converted fields in data that were originally offsets (such as tick proc offsets) to use indexes, allowing for more generic handling of different language versions
svn-id: r29073
2007-09-23 22:17:57 +00:00
Max Horn
f7590de0aa Fix endian bug
svn-id: r29047
2007-09-23 12:11:05 +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
Paul Gilbert
ca96ba431c Completed the restart/restore dialog screen and functionality
svn-id: r28714
2007-08-25 06:08:02 +00:00
Paul Gilbert
9a9d0cb0a5 Cleaned up structures for room exit joins
svn-id: r28550
2007-08-12 11:16:43 +00:00
Paul Gilbert
d03e3e9c87 Added code for hotspot fields I didn't originally understand
svn-id: r28457
2007-08-05 02:56:51 +00:00
Paul Gilbert
8b3821e9ff Lots of bugfixes - game is now completable
svn-id: r27606
2007-06-22 12:36:04 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Paul Gilbert
30142129c0 Added saving of scheduled scripts, and set script activation times to match original game
svn-id: r26991
2007-05-28 11:36:08 +00:00
Paul Gilbert
8740e81d1f Bugfix to save whether each NPC has been identified, and correctly transform back from Selena
svn-id: r26935
2007-05-25 22:59:24 +00:00
Paul Gilbert
56bb400ef9 Fixed several room change, NPC behaviour, and door closing code
svn-id: r26887
2007-05-20 12:39:15 +00:00
Paul Gilbert
4a40ecb4df Added saving of the room walkable paths
svn-id: r26883
2007-05-20 07:25:53 +00:00
Paul Gilbert
d2e56f7b66 Added saving of room exit join data in savefiles
svn-id: r26776
2007-05-07 12:10:32 +00:00
Paul Gilbert
643735e8a4 Bugfix for random destination setting so NPCs don't walk outside the valid walkable areas of a room
svn-id: r26747
2007-05-05 01:00:01 +00:00
Paul Gilbert
885f687ae5 Reworked hotspot actions so that talking to characters work properly
svn-id: r26675
2007-04-29 11:30:29 +00:00
Paul Gilbert
fdea5abb34 Added code to prevent NPCs from moving when being talked to
svn-id: r26546
2007-04-19 06:46:56 +00:00
Paul Gilbert
2d617677df Bugfix to have Ratpouch correctly follow player, and new object animation handlers added
svn-id: r26487
2007-04-15 10:49:59 +00:00
Travis Howell
c838ae690b Fix a few Valgrind warnings.
svn-id: r26484
2007-04-15 08:34:53 +00:00
Paul Gilbert
68225f7896 Implemented handling for barmen (rooms 29, 32, and 35)
svn-id: r26464
2007-04-14 03:48:24 +00:00
Max Horn
a6f3ed8173 Got rid of Lure::System
svn-id: r26155
2007-03-17 00:39:18 +00:00
Paul Gilbert
4f8c66b4cc Added saving of the random actions set state, and implemented NPC opcode 29, which allows for an NPC to be given a custom talk record
svn-id: r25875
2007-02-26 02:50:23 +00:00
Paul Gilbert
0c899f82ab Syntax fixes to conform to ScummVM coding standards
svn-id: r25781
2007-02-22 08:17:41 +00:00
Paul Gilbert
7ac767a2ba Added proper support for the random actions your sidekick can do in each room
svn-id: r25780
2007-02-22 06:29:09 +00:00
Max Horn
a49c22290f fix warning
svn-id: r25450
2007-02-09 17:17:08 +00:00
Paul Gilbert
87b3f2c6d8 Added new flag for blocked characters and extra checking of dynamic support records versus static schedule entry records
svn-id: r25441
2007-02-09 10:58:06 +00:00