[Scummvm-cvs-logs] SF.net SVN: scummvm:[48406] scummvm/trunk/engines/lure/hotspots.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Fri Mar 26 23:16:45 CET 2010
Revision: 48406
http://scummvm.svn.sourceforge.net/scummvm/?rev=48406&view=rev
Author: dreammaster
Date: 2010-03-26 22:16:45 +0000 (Fri, 26 Mar 2010)
Log Message:
-----------
Added explicit initialisation of NPC directions in the hotspot constructors
Modified Paths:
--------------
scummvm/trunk/engines/lure/hotspots.cpp
Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp 2010-03-26 20:45:32 UTC (rev 48405)
+++ scummvm/trunk/engines/lure/hotspots.cpp 2010-03-26 22:16:45 UTC (rev 48406)
@@ -50,6 +50,7 @@
_frames = NULL;
_numFrames = 0;
_persistant = false;
+ _direction = NO_DIRECTION;
_hotspotId = res->hotspotId;
_originalId = res->hotspotId;
@@ -109,6 +110,7 @@
_voiceCtr = 0;
_walkFlag = false;
_skipFlag = false;
+ _direction = NO_DIRECTION;
switch (objType) {
case VOICE_ANIM_IDX:
@@ -196,6 +198,7 @@
_frameWidth = _width;
_frameStartsUsed = false;
_tempDest.counter = 0;
+ _direction = NO_DIRECTION;
}
Hotspot::~Hotspot() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list