Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2014, 9:20:39 PM (10 years ago)
Author:
landauf
Message:

fixed warnings (msvc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/invader/Invader.cc

    r9959 r9961  
    8888            {
    8989                WeakPtr<BigExplosion> chunk = new BigExplosion(this->center_->getContext());
    90                 chunk->setPosition(Vector3(600, 0, 100 * i - 300));
     90                chunk->setPosition(Vector3(600, 0, 100.f * i - 300));
    9191                chunk->setVelocity(Vector3(1000, 0, 0));  //player->getVelocity()
    9292                chunk->setScale(20);
     
    130130            newPawn->level = level;
    131131            // spawn enemy at random points in front of player.
    132             newPawn->setPosition(player->getPosition() + Vector3(500 + 100 * i, 0, float(rand())/RAND_MAX * 400 - 200));
     132            newPawn->setPosition(player->getPosition() + Vector3(500.f + 100 * i, 0, float(rand())/RAND_MAX * 400 - 200));
    133133        }
    134134    }
Note: See TracChangeset for help on using the changeset viewer.