Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9956


Ignore:
Timestamp:
Jan 3, 2014, 8:13:59 PM (11 years ago)
Author:
landauf
Message:

fixed build with msvc (it seems to use c++98 which has 3 overloads of log10() but none for integrals)

File:
1 edited

Legend:

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

    r9943 r9956  
    8484        level++;
    8585        if (getPlayer() != NULL)
    86         {   
     86        {
    8787            for (int i = 0; i < 7; i++)
    8888            {
     
    114114            return;
    115115        srand(player->getPosition().x + player->getPosition().y);
    116         for (int i = 0; i < (3*log10(level) + 1); i++)
     116        for (int i = 0; i < (3*log10(static_cast<double>(level)) + 1); i++)
    117117        {
    118118            WeakPtr<InvaderEnemy> newPawn;
Note: See TracChangeset for help on using the changeset viewer.