Skip to content

Commit

Permalink
SCUMM: Fix warnings thrown by MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed May 22, 2016
1 parent ba930cf commit e080c4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion engines/scumm/he/moonbase/ai_main.cpp
Expand Up @@ -726,7 +726,7 @@ int masterControlProgram(const int paramCount, const int *params) {
// Here to scope tempLaunchAction
int *tempLaunchAction = NULL;

int errCod;
int errCod = 0;

_acquireTarget++;

Expand Down
2 changes: 1 addition & 1 deletion engines/scumm/he/moonbase/ai_node.h
Expand Up @@ -28,7 +28,7 @@
namespace Scumm {

const float SUCCESS = -1;
const float FAILURE = 1e20;
const float FAILURE = 1e20f;

class IContainedObject {
private:
Expand Down
5 changes: 2 additions & 3 deletions engines/scumm/he/moonbase/ai_tree.cpp
Expand Up @@ -80,7 +80,7 @@ Tree::~Tree() {
while (pNodeItr != NULL) {
// If any children are left, move to one of them
if (!(pNodeItr->getChildren().empty())) {
int size = (pNodeItr->getChildren()).size();
//int size = (pNodeItr->getChildren()).size();
pNodeItr = pNodeItr->popChild();
} else {
// Delete this node, and move up to the parent for further processing
Expand Down Expand Up @@ -157,11 +157,10 @@ Node *Tree::aStarSearch_singlePassInit() {

Node *Tree::aStarSearch_singlePass(Node **currentNode) {
currentNode = NULL;
float currentT;

Node *retNode = NULL;

#if 0
float currentT;
static int maxTime = 0;

if (currentChildIndex == 1) {
Expand Down

0 comments on commit e080c4b

Please sign in to comment.