Commit graph

92 commits

Author SHA1 Message Date
Thierry Crozat
448779ad8e LURE: Fix undefined behaviour in variadic functions
Passing a type that undergoes default argument promotion as last
argument of a variadic function results in undefined behaviour.
2017-10-06 01:01:16 +01:00
Paul Gilbert
1ae67bf2a9 LURE: Fix compiler warning 2015-11-16 22:46:36 -05:00
Paul Gilbert
f8b36bf855 LURE: Simplify StringList class 2015-11-16 20:48:01 -05:00
Johannes Schickel
b03ca0e80a LURE: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Torbjörn Andersson
621364edae LURE: Fix bounds checking
CID 1003986 and CID 1003990.
2013-04-24 20:50:06 +02:00
Christoph Mallon
e40ba4c135 JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
Christoph Mallon
337d5da913 JANITORIAL: Make getters const. 2012-03-13 15:43:30 +01:00
Matthew Hoops
9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
Max Horn
90b6cdfbdf LURE: Remove all uses of (f)printf; cleanup
svn-id: r54106
2010-11-07 01:03:03 +00:00
Paul Gilbert
e868dcd804 LURE: Fix for #3087842 - Code analysis warnings
This is a somewhat cleaner version than my previous commit

svn-id: r53516
2010-10-15 21:13:35 +00:00
Paul Gilbert
63cb051351 LURE: Fix for #3087842 - Code analysis warnings
Only the warning for res_struct.cpp is valid to be fixed

svn-id: r53469
2010-10-15 08:29:23 +00:00
Ori Avtalion
003922f43d Remove unnecessary 'extern' keywords
svn-id: r48598
2010-04-09 13:46:10 +00:00
Torbjörn Andersson
4818467908 Silenced some more cppcheck warnings. Some of these may seem silly, but the way
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.

svn-id: r47443
2010-01-22 19:05:02 +00:00
Max Horn
bce959e046 LURE: Remove evil 'using namespace' from header files
svn-id: r47396
2010-01-19 23:48:55 +00:00
Torbjörn Andersson
72eb9ec9ea Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary.

svn-id: r46941
2010-01-03 19:37:43 +00:00
Max Horn
d0876b06ed Remove some unused variables
svn-id: r44853
2009-10-09 22:21:45 +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
Paul Gilbert
e67b0ef08c Replaced delete operator with delete[]
svn-id: r44514
2009-10-01 12:03:12 +00:00
Paul Gilbert
13c7397837 Bugfix to properly have one NPC character move out of the way when two NPCs bump into each other
svn-id: r36153
2009-01-31 01:58:10 +00:00
Paul Gilbert
0a8541cc0a Bugfix for #2480857 - Additionally savegames were crashing ScummVM
svn-id: r35694
2009-01-03 10:44:43 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
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