1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-27 10:30:36 +00:00

fixed resetview in embedded_plane in product

This commit is contained in:
Zeno Rogue 2022-12-18 00:16:32 +01:00
parent 547c0785ef
commit 006a325d36

View File

@ -2247,7 +2247,7 @@ EX void resetview() {
if(WDIM == 3 && !gproduct) View = cspin90(0, 2) * View; if(WDIM == 3 && !gproduct) View = cspin90(0, 2) * View;
if(gproduct) NLP = cspin90(0, 2); if(gproduct) NLP = cspin90(0, 2);
View = inverse(logical_to_actual()) * View; View = inverse(logical_to_actual()) * View;
if(embedded_plane) View = cspin90(1, 2) * View; if(embedded_plane) get_view_orientation() = cspin90(1, 2) * get_view_orientation();
if(embedded_plane && vid.wall_height < 0) View = cspin180(0, 1) * View; if(embedded_plane && vid.wall_height < 0) View = cspin180(0, 1) * View;
cwtV = shiftless(View); cwtV = shiftless(View);