Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2015, 10:30:56 PM (8 years ago)
Author:
gania
Message:

added other weapons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/CommonController.cc

    r10877 r10885  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Gani Aliguzhinov
    2424 *   Co-authors:
    2525 *      Dominik Solenicki
     
    5252    float CommonController::randomInRange( float a, float b )
    5353    {
    54         float random = rnd( 1.0f );
    55         float diff = b - a;
    56         float r = random * diff;
    57         return a + r;
     54        return a + rnd(1.0f) * (b - a);
    5855    }
    5956    float CommonController::distance (ControllableEntity* entity1, ControllableEntity* entity2)
     
    193190        return name;
    194191    }
    195  
    196 
    197192}
Note: See TracChangeset for help on using the changeset viewer.