Advertisement
Pagoniusz

Untitled

Apr 27th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. case'r':        //prawo
  2.     {
  3.         tmp.x += _speed;
  4.         tmp2 = rogi[1] + tmp;
  5.         tmp3 = rogi[3] + tmp;
  6.         if (this->_map->GetObeiektFromPosition(tmp2) != NULL || this->_map->GetObeiektFromPosition(tmp3) != NULL)
  7.         {
  8.             if (tmp2 / 40 == rogi[1] / 40)
  9.             {
  10.                 return true;
  11.             }
  12.             else{
  13.                 if (this->GetMid().y % 40 < 20 && this->_map->GetObeiektFromPosition(tmp2) == NULL) //sprawdzam czy srodek od polowy, tu sprawdzam gore
  14.                 {
  15.                     //GoUp();
  16.                 }
  17.                 return false;
  18.             }
  19.         }
  20.  
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement