| 167 | |
| 168 | |
| 169 | void Game_SetViewDistance(int distance) { |
| 170 | distance = min(distance, Game_MaxViewDistance); |
| 171 | if (distance == Game_ViewDistance) return; |
| 172 | Game_ViewDistance = distance; |
| 173 | |
| 174 | Event_RaiseVoid(&GfxEvents.ViewDistanceChanged); |
| 175 | Camera_UpdateProjection(); |
| 176 | } |
| 177 | |
| 178 | void Game_UserSetViewDistance(int distance) { |
| 179 | Game_UserViewDistance = distance; |
no test coverage detected