nisot::local_perspective moved to display_data

This commit is contained in:
Zeno Rogue committed 2019-11-14 17:20:55 +01:00
1 parent 0f84ec8dc8
commit 3eee611eca
8 files changed
+23 -21

No files matched your search

+3
View File
@@ -17,6 +17,8 @@ struct display_data {
cell *precise_center;
/** The current rotation, relative to precise_center. */
transmatrix view_matrix;
/** Camera rotation, used in nonisotropic geometries. */
transmatrix local_perspective;
/** The view relative to the player character. */
transmatrix player_matrix;
/** On-screen coordinates for all the visible cells. */
@@ -52,6 +54,7 @@ struct display_data {
#define centerover (current_display->precise_center)
#define gmatrix (current_display->cellmatrices)
#define gmatrix0 (current_display->old_cellmatrices)
#define NLP (current_display->local_perspective)
#endif