diff options
author | Peter Kohaut | 2018-02-01 20:40:49 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-02-01 21:38:30 +0100 |
commit | 7f53a0cd31f07cdcc9610b3c6972002e296ff0ee (patch) | |
tree | d01c2b034c231fd452ac18d95edad6e733c75581 /engines/bladerunner/actor.cpp | |
parent | 2e74fd8f224428a368cb3301c12e613d3111d424 (diff) | |
download | scummvm-rg350-7f53a0cd31f07cdcc9610b3c6972002e296ff0ee.tar.gz scummvm-rg350-7f53a0cd31f07cdcc9610b3c6972002e296ff0ee.tar.bz2 scummvm-rg350-7f53a0cd31f07cdcc9610b3c6972002e296ff0ee.zip |
BLADERUNNER: Fixed few Coverity issues
Diffstat (limited to 'engines/bladerunner/actor.cpp')
-rw-r--r-- | engines/bladerunner/actor.cpp | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp index 013dace5e1..eb56992f50 100644 --- a/engines/bladerunner/actor.cpp +++ b/engines/bladerunner/actor.cpp @@ -55,6 +55,33 @@ Actor::Actor(BladeRunnerEngine *vm, int actorId) { _combatInfo = new ActorCombat(vm); _friendlinessToOther = new int[_vm->_gameInfo->getActorCount()]; + + _isMoving = false; + _isTargetable = false; + _inCombat = false; + _isInvisible = false; + _isImmuneToObstacles = false; + _damageAnimIfMoving = false; + _movementTrackPaused = false; + _movementTrackNextWaypointId = -1; + _movementTrackNextDelay = -1; + _movementTrackNextAngle = -1; + _movementTrackNextRunning = false; + _movementTrackWalkingToWaypointId = -1; + _movementTrackDelayOnNextWaypoint = -1; + _width = 0; + _height = 0; + _animationMode = -1; + _animationModeCombatIdle = -1; + _animationModeCombatWalk = -1; + _animationModeCombatRun = -1; + _fps = 0; + _frame_ms = 0; + _animationId = 0; + _animationFrame = 0; + _retiredWidth = 0; + _retiredHeight = 0; + _scale = 0.0f; } Actor::~Actor() { @@ -101,7 +128,7 @@ void Actor::setup(int actorId) { _timersStart[i] = _vm->getTotalPlayTime(); } - _scale = 1.0; + _scale = 1.0f; _honesty = 50; _intelligence = 50; |