Commit MetaInfo

Revision0bd238643150062436619d4ab1f94923eef7eb6e (tree)
Time2014-05-17 02:45:35
AuthorFace
CommiterFace

Log Message

JumpDriveMFD: OAPI already has an astronomical unit macro

Change Summary

Incremental Difference

diff -r 6be1454a0283 -r 0bd238643150 Orbitersdk/samples/JumpDriveMFD/JumpDriveMFD.cpp
--- a/Orbitersdk/samples/JumpDriveMFD/JumpDriveMFD.cpp Fri May 16 19:40:13 2014 +0200
+++ b/Orbitersdk/samples/JumpDriveMFD/JumpDriveMFD.cpp Fri May 16 19:45:35 2014 +0200
@@ -27,7 +27,6 @@
2727 #define BANG 53
2828 #define WOOSHIN 54
2929 #define CHARGE 55
30-#define ASTROUNIT 1.49598E11
3130 #define MODES 10
3231 #define MAXCHARS 255
3332 #define MAXFOV RAD * 45
@@ -334,7 +333,7 @@
334333 l=strlen(buffer);
335334 TextOut(hDC, (1+(37-l)/2)*width, (labelpos[0]*heigth) >> 1, buffer, l);
336335 //Jump drive range
337- sprintf(buffer, "%5.2em(%5.3fAU)", jump, jump/ASTROUNIT);
336+ sprintf(buffer, "%5.2em(%5.3fAU)", jump, jump/AU);
338337 l=strlen(buffer);
339338 TextOut(hDC, (1+(37-l)/2)*width, (labelpos[1]*heigth) >> 1, buffer, l);
340339 //Jump drive capacity
Show on old repository browser