| 584 | } |
| 585 | |
| 586 | void TerrainBlock::setHeight( const Point2I &pos, F32 height ) |
| 587 | { |
| 588 | U16 ht = floatToFixed( height ); |
| 589 | mFile->setHeight( pos.x, pos.y, ht ); |
| 590 | |
| 591 | // Note: We do not update the grid here as this could |
| 592 | // be called several times in a loop. We depend on the |
| 593 | // caller doing a grid update when he is done. |
| 594 | } |
| 595 | |
| 596 | F32 TerrainBlock::getHeight( const Point2I &pos ) |
| 597 | { |
nothing calls this directly
no test coverage detected