Commit Graph

50 Commits

Author SHA1 Message Date
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
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
6a9acd7a5e Replaced ManagedList with Common::SharedPtr in the rest of the lure engine
svn-id: r31420
2008-04-06 12:00:37 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paul Gilbert
dde154c3ed Removed old copyright 2005-2006 line from several files so that their headers are consistant with the other files
svn-id: r30433
2008-01-12 01:30:11 +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
62fdf1afa0 Changed room change code for an immediate transition when in EGA mode (which can't do fades)
svn-id: r30236
2008-01-05 12:09:24 +00:00
Paul Gilbert
2c86089264 Fix for showing the correct colour in the status line in EGA mode
svn-id: r30229
2008-01-05 10:36:36 +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
a54f9c311a Fix to ensure any active conversation data or selected hotspot is cleared when restoring or restarting a game
svn-id: r30066
2007-12-29 04:25:26 +00:00
Paul Gilbert
337db5d4c7 Bugfix to not allow animation fast forward when restoring a game - it was causing occasional crashes due to tick handlers referencing animations not yet loaded (it's only meant to be done during room changes)
svn-id: r29950
2007-12-22 11:34:10 +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
Paul Gilbert
aa96ec9940 Bugfix for walking to hotspots - if the mouse was already highlighting the hotspot when a room was entered, clicking on it would cause the player to walk to an arbitrary exit
svn-id: r29875
2007-12-16 09:36:07 +00:00
Paul Gilbert
692d64f934 Added some more code to the savegame load process to correctly handle previously saved savegames (from version 25)
svn-id: r29693
2007-12-02 08:32:21 +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
Paul Gilbert
9a07589de8 Bugfix to properly clear previous room layers and fade in the screen when restoring a game
svn-id: r29537
2007-11-17 11:03:18 +00:00
Paul Gilbert
ca10a4db08 Bugfixes to the fighting animations and proper reset of fight data between save sessions
svn-id: r29526
2007-11-17 06:53:13 +00:00
Paul Gilbert
d5dc2e075a Bugfixes to restoring or restarting a game from the Restore/Restart dialog
svn-id: r29524
2007-11-17 00:19:45 +00:00
Paul Gilbert
2a24ecaf9b Fixed clipping issues that were still occurring in some rooms
svn-id: r29500
2007-11-14 11:46:55 +00:00
Paul Gilbert
7bf1b77f3c removeSounds was being called too early - it was setting the current area to that of the room being left, rather than the one being entered
svn-id: r29482
2007-11-12 10:09:33 +00:00
Paul Gilbert
24303fb953 Expanded talk routines so that characters now properly stand still only when they're meant to
svn-id: r29471
2007-11-10 22:47:11 +00:00
Paul Gilbert
5f6cb432fb Restoring a game now correctly fades out the current room like the original
svn-id: r29459
2007-11-09 08:22:09 +00:00
Paul Gilbert
cb302b244b Room fades now correctly fade out any active talk dialog
svn-id: r29277
2007-10-28 04:27:18 +00:00
Paul Gilbert
a48d2d3ff3 Talk dialogs can now only be closed early if it's the player talking, or an NPC is talking directly to the player
svn-id: r29258
2007-10-25 10:40:26 +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
1aab730e6b Finally got the room layering to work correctly
svn-id: r29236
2007-10-20 22:35:23 +00:00
Paul Gilbert
532ae68aa2 Tweaked the colour fading code so that room 4 will display correctly
svn-id: r29068
2007-09-23 22:12:37 +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
48499f3a52 Added accelerated tick calls during room loads
svn-id: r28547
2007-08-12 11:14:23 +00:00
Paul Gilbert
cfff436ca7 Added proper room change fading effect
svn-id: r28212
2007-07-26 10:11:31 +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
6e0c500bc1 Added line to ensure the current room number field variable is kept up to date
svn-id: r25648
2007-02-17 03:42:43 +00:00
Paul Gilbert
9d474d6258 Added check to skip drawing hotspots in layer 1 if their skip flag is set
svn-id: r25298
2007-01-31 02:26:16 +00:00
Paul Gilbert
1a96e26bf6 Added functionality to allow saving/loading the game state
svn-id: r24070
2006-10-02 12:48:56 +00:00
Paul Gilbert
e5fcd5ff2d Changed name of HOTSPOTFLAG_HIGHLIGHTED to HOTSPOTFLAG_FOUND to make it's use clearer
svn-id: r23824
2006-09-03 05:03:50 +00:00
Paul Gilbert
e0d2b0764f Added word wrapping to the status line (necessary when giving long sets of Tell instructions)
svn-id: r23809
2006-08-30 11:48:43 +00:00
Paul Gilbert
1a77d61ace Enhanced Room::setTalkDialog to be passed the destination character and active item hotspot Id
svn-id: r23692
2006-08-07 13:21:15 +00:00
Paul Gilbert
6fa9819377 Added constants for known hotspot flags, and added line to flag hotspots that have been highlighted with the cursor
svn-id: r23630
2006-07-30 12:12:18 +00:00
Paul Gilbert
9fe05aa007 Rewrote the status line handling code along with tweaks to the debug information display
svn-id: r23406
2006-07-08 08:29:01 +00:00
Paul Gilbert
5fa3985bcb Player now moves out of the way if he's blocking an entrance when an NPC enters. Also changed errors in unimplemented NPC actions to warnings
svn-id: r22731
2006-05-29 08:12:07 +00:00
Paul Gilbert
3e4566e196 Added some extra safety checks. Also contains some started work on redesigning the display of the current action
svn-id: r22577
2006-05-23 12:36:57 +00:00
Paul Gilbert
946d0582dc Added proper action display after selection along with showing the camera cursor
svn-id: r22208
2006-04-29 11:19:55 +00:00
Paul Gilbert
4b91326131 Added a destRoomNumber variable to store which room a highlighted exit goes to, as well as some temporary code used to display pathfinding information onscreen when Toggle Info is turned on
svn-id: r21783
2006-04-11 10:50:18 +00:00
Max Horn
9f93e5bb81 Renamed various container isEmpty() methods to empty() to match STL conventions
svn-id: r21472
2006-03-28 09:42:54 +00:00
Travis Howell
b8cf88622b Fix a few valgrind warnings
svn-id: r21258
2006-03-13 11:52:16 +00:00
Lars Persson
04151343a7 Compile fixes for VC6
svn-id: r21179
2006-03-09 13:54:36 +00:00
Paul Gilbert
dd6b207025 Improved layering of objects within rooms - for example, Ratpouch now properly shows up on the rack
svn-id: r20804
2006-02-21 09:25:39 +00:00
Paul Gilbert
d525af4685 Added display of talk dialogs during conversations
svn-id: r20762
2006-02-19 04:13:08 +00:00
Max Horn
26ee630756 Moved engines to the new engines/ directory
svn-id: r20582
2006-02-11 22:45:04 +00:00