fix continuous shift when zoomed out in editor
This commit is contained in:
@@ -3146,13 +3146,15 @@ bool last_shift_continuous = false;
|
|||||||
|
|
||||||
static void restore_current_out_state() {
|
static void restore_current_out_state() {
|
||||||
// Restore the last view state of the new outdoor section UNLESS we shifted to it continuously
|
// Restore the last view state of the new outdoor section UNLESS we shifted to it continuously
|
||||||
if(!last_shift_continuous && scenario.editor_state.out_view_state.find(cur_out) != scenario.editor_state.out_view_state.end()){
|
if(!last_shift_continuous){
|
||||||
location cen = scenario.editor_state.out_view_state[cur_out].center;
|
if(scenario.editor_state.out_view_state.find(cur_out) != scenario.editor_state.out_view_state.end()){
|
||||||
cen_x = cen.x;
|
location cen = scenario.editor_state.out_view_state[cur_out].center;
|
||||||
cen_y = cen.y;
|
cen_x = cen.x;
|
||||||
cur_viewing_mode = scenario.editor_state.out_view_state[cur_out].cur_viewing_mode;
|
cen_y = cen.y;
|
||||||
}else{
|
cur_viewing_mode = scenario.editor_state.out_view_state[cur_out].cur_viewing_mode;
|
||||||
cur_viewing_mode = 0;
|
}else{
|
||||||
|
cur_viewing_mode = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user