1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-04 10:42:51 +00:00

cview() called outside of draw -- this way it works with product

This commit is contained in:
Zeno Rogue 2019-08-20 16:09:16 +02:00
parent 6c75c2687d
commit 47823ef0fb

View File

@ -7198,10 +7198,6 @@ EX void make_actual_view() {
actual_view_transform = inverse(nisot::local_perspective) * actual_view_transform; actual_view_transform = inverse(nisot::local_perspective) * actual_view_transform;
} }
#endif #endif
}
EX transmatrix cview() {
make_actual_view();
#if MAXMDIM >= 4 #if MAXMDIM >= 4
if(GDIM == 3 && WDIM == 2) { if(GDIM == 3 && WDIM == 2) {
transmatrix T = actual_view_transform * View; transmatrix T = actual_view_transform * View;
@ -7218,7 +7214,9 @@ EX transmatrix cview() {
radar_transform = T * U; radar_transform = T * U;
} }
#endif #endif
}
EX transmatrix cview() {
return actual_view_transform * View; return actual_view_transform * View;
} }
@ -7354,6 +7352,7 @@ EX void drawthemap() {
arrowtraps.clear(); arrowtraps.clear();
profile_start(1); profile_start(1);
make_actual_view();
currentmap->draw(); currentmap->draw();
drawWormSegments(); drawWormSegments();
drawBlizzards(); drawBlizzards();