| 8552 | } |
| 8553 | |
| 8554 | bool cFodder::MapTile_Update_Position() { |
| 8555 | |
| 8556 | MapTile_Update_Y(); |
| 8557 | MapTile_Update_X(); |
| 8558 | |
| 8559 | int16 TileColumns = mMapTile_DrawX - mMapTile_Column_CurrentScreen; |
| 8560 | int16 TileRows = mMapTile_DrawY - mMapTile_Row_CurrentScreen; |
| 8561 | |
| 8562 | mMapTile_Column_CurrentScreen = mMapTile_DrawX; |
| 8563 | mMapTile_Row_CurrentScreen = mMapTile_DrawY; |
| 8564 | |
| 8565 | if (TileColumns) { |
| 8566 | if (TileColumns < 0) |
| 8567 | MapTile_Move_Left(-TileColumns); |
| 8568 | else |
| 8569 | MapTile_Move_Right(TileColumns); |
| 8570 | } |
| 8571 | |
| 8572 | if (TileRows) { |
| 8573 | if (TileRows < 0) |
| 8574 | MapTile_Move_Up(-TileRows); |
| 8575 | else |
| 8576 | MapTile_Move_Down(TileRows); |
| 8577 | } |
| 8578 | |
| 8579 | if (TileColumns || TileRows) { |
| 8580 | //if (!mStartParams->mDisableVideo) |
| 8581 | // mGraphics->MapTiles_Draw(); |
| 8582 | return true; |
| 8583 | } |
| 8584 | |
| 8585 | return false; |
| 8586 | } |
| 8587 | |
| 8588 | void cFodder::MapTile_Move_Right(int16 pPanTiles) { |
| 8589 |
nothing calls this directly
no outgoing calls
no test coverage detected