Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: fredrender.cpp
- ===================================================================
- --- fredrender.cpp (revision 9165)
- +++ fredrender.cpp (working copy)
- @@ -65,6 +65,7 @@
- #define MAX_FRAMETIME (F1_0/4) // Frametime gets saturated at this.
- #define MIN_FRAMETIME (F1_0/120)
- #define LOLLIPOP_SIZE 2.5f
- +#define CONVERT_DEGREES 57.29578f // conversion factor from radians to degrees
- const float FRED_DEFAULT_HTL_FOV = 0.485f;
- const float FRED_BRIEFING_HTL_FOV = 0.325f;
- @@ -1447,7 +1448,7 @@
- int x, y, w, h, inst;
- vec3d pos;
- vertex v;
- - angles a;
- + angles a, a_deg; //a is in rads, a_deg is in degrees
- g3_end_frame(); // ** Accounted for
- @@ -1530,9 +1531,14 @@
- inst = Objects[Cursor_over].instance;
- if ((Objects[Cursor_over].type == OBJ_SHIP) || (Objects[Cursor_over].type == OBJ_START)) {
- vm_extract_angles_matrix(&a, &Objects[Cursor_over].orient);
- +
- + a_deg.h = a.h * CONVERT_DEGREES; // convert angles to more readable degrees
- + a_deg.p = a.p * CONVERT_DEGREES;
- + a_deg.b = a.b * CONVERT_DEGREES;
- +
- sprintf(buf, "%s\n%s\n( %.1f , %.1f , %.1f ) \nHeading: %.2f\nPitch: %.2f\nBank: %.2f",
- Ships[inst].ship_name, Ship_info[Ships[inst].ship_info_index].short_name,
- - pos.xyz.x, pos.xyz.y, pos.xyz.z, a.h, a.p, a.b);
- + pos.xyz.x, pos.xyz.y, pos.xyz.z, a_deg.h, a_deg.p, a_deg.b);
- } else if (Objects[Cursor_over].type == OBJ_WAYPOINT) {
- int idx;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement