Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8316 in orxonox.OLD for trunk/src/lib/graphics/render2D


Ignore:
Timestamp:
Jun 11, 2006, 1:57:27 PM (19 years ago)
Author:
bensch
Message:

trunk: fixed most -Wall warnings… but there are still many missing :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r8035 r8316  
    961961        /* update the current absCoordinate */
    962962        this->prevRelCoordinate = this->relCoordinate;
    963         float sine = sin(this->parent->getAbsDir2D());
    964         float cose = cos(this->parent->getAbsDir2D());
     963//         float sine = sin(this->parent->getAbsDir2D());
     964//         float cose = cos(this->parent->getAbsDir2D());
    965965        //        this->absCoordinate.x = this->relCoordinate.x*cose - this->relCoordinate.y*sine + this->parent->getRelCoor2D().x*(1-cose) +this->parent->getRelCoor2D().y*sine;
    966966        //        this->absCoordinate.y = this->relCoordinate.x*sine + this->relCoordinate.y*cose + this->parent->getRelCoor2D().y*(1-cose) +this->parent->getRelCoor2D().x*sine;
     
    11671167  else if (parentingMode == E2D_PARENT_ROTATE_AND_MOVE)
    11681168    return "rotate-and-move";
     1169  else return "all";
    11691170}
    11701171
     
    11861187  else  if (parentingMode == "rotate-and-move")
    11871188    return (E2D_PARENT_ROTATE_AND_MOVE);
     1189  else return E2D_PARENT_ALL;
    11881190}
    11891191
Note: See TracChangeset for help on using the changeset viewer.