Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 7:49:31 PM (14 years ago)
Author:
rgrieder
Message:

Removed a load of warnings for VS 2005 and possibly VS 2008.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/controllers/ArtificialController.cc

    r7163 r7183  
    498498            {
    499499                pos = Vector3::ZERO;
    500                 if (i <= 1) pos += dest  + FORMATION_WIDTH*(orient*WorldEntity::LEFT);
    501                 if (i == 2) pos += dest  + FORMATION_WIDTH*(orient*WorldEntity::RIGHT);
    502                 if (i == 3) pos += dest  + FORMATION_WIDTH*(orient*WorldEntity::UP);
     500                if (i <= 1) pos += dest  + (float)FORMATION_WIDTH*(orient*WorldEntity::LEFT);
     501                if (i == 2) pos += dest  + (float)FORMATION_WIDTH*(orient*WorldEntity::RIGHT);
     502                if (i == 3) pos += dest  + (float)FORMATION_WIDTH*(orient*WorldEntity::UP);
    503503                if (i >= 4)
    504504                {
    505                     pos += dest  + FORMATION_WIDTH*(orient*WorldEntity::DOWN);
     505                    pos += dest  + (float)FORMATION_WIDTH*(orient*WorldEntity::DOWN);
    506506                    i = 1;
    507                     dest += FORMATION_LENGTH*(orient*WorldEntity::BACK);
     507                    dest += (float)FORMATION_LENGTH*(orient*WorldEntity::BACK);
    508508                    (*it)->setTargetPosition(pos);
    509509                    continue;
Note: See TracChangeset for help on using the changeset viewer.