Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2015, 4:24:41 PM (9 years ago)
Author:
erbj
Message:

added timer in tick function to pause for 10 seconds between waves , trying to solve the problem, that towers are shooting at (0,0,0) (center point). The Problem seems to be in the sameteam function as the turret and the pawn at the position (0,0,0) should have the same team

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFS15/src/orxonox/controllers/FormationController.cc

    r10335 r10368  
    987987        }
    988988
    989         TeamDeathmatch* tdm = orxonox_cast<TeamDeathmatch*>(gametype);
     989        TeamGametype* tdm = orxonox_cast<TeamGametype*>(gametype);
    990990        if (tdm)
    991991        {
     
    995995            if (entity2->getPlayer())
    996996                team2 = tdm->getTeam(entity2->getPlayer());
    997         }
    998 
    999         Mission* miss = orxonox_cast<Mission*>(gametype);
    1000         if (miss)
    1001         {
    1002             if (entity1->getPlayer())
    1003                 team1 = miss->getTeam(entity1->getPlayer());
    1004 
    1005             if (entity2->getPlayer())
    1006                 team2 = miss->getTeam(entity2->getPlayer());
    1007997        }
    1008998
Note: See TracChangeset for help on using the changeset viewer.