Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case'r': //prawo
- {
- tmp.x += _speed;
- tmp2 = rogi[1] + tmp;
- tmp3 = rogi[3] + tmp;
- if (this->_map->GetObeiektFromPosition(tmp2) != NULL || this->_map->GetObeiektFromPosition(tmp3) != NULL)
- {
- if (tmp2 / 40 == rogi[1] / 40)
- {
- return true;
- }
- else{
- if (this->GetMid().y % 40 < 20 && this->_map->GetObeiektFromPosition(tmp2) == NULL) //sprawdzam czy srodek od polowy, tu sprawdzam gore
- {
- //GoUp();
- }
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement