Space now resets the map camera
This commit is contained in:
parent
267ffc105c
commit
c1e76d09a9
|
@ -193,6 +193,10 @@ pub fn update_map_camera(
|
|||
if keyboard_input.pressed(settings.key_left) {
|
||||
offset_z += 1.0;
|
||||
}
|
||||
if keyboard_input.pressed(settings.key_stop) {
|
||||
mapcam.offset_x = 0.0;
|
||||
mapcam.offset_z = 0.0;
|
||||
}
|
||||
|
||||
// Update zoom level
|
||||
if !mapcam.initialized {
|
||||
|
|
Loading…
Reference in a new issue