| 447 | } |
| 448 | |
| 449 | bool CCar::SDoor::CanExit(const Fvector& pos, const Fvector& dir) |
| 450 | { |
| 451 | // if(state==opened) return true; |
| 452 | // return false; |
| 453 | // if(!joint) return true;//temp for fake doors |
| 454 | if (state == closed && joint) |
| 455 | return false; |
| 456 | return TestPass(pos, dir); |
| 457 | } |
| 458 | |
| 459 | void CCar::SDoor::GetExitPosition(Fvector& pos) |
| 460 | { |