This commit is contained in:
Pieter-Jan Briers
2017-01-12 22:55:23 +01:00
committed by Probe1
parent 95f7ad63ac
commit f897f8ed95
3 changed files with 9 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
#define PI 3.141592653
// The TRUE circle constant!
#define TAU (PI * 2)
//"fancy" math for calculating time in ms from tick_usage percentage and the length of ticks
//percent_of_tick_used * (ticklag * 100(to convert to ms)) / 100(percent ratio)
//collapsed to percent_of_tick_used * tick_lag

View File

@@ -35,8 +35,6 @@ var/global/disable_vents = 0
#define PIPING_LAYER_P_Y -5*PIXEL_MULTIPLIER //same, but negative because they form a diagonal
#define PIPING_LAYER_LCHANGE 0.05 //how much the layer var changes per increment
#define PI 3.1415
#define R_IDEAL_GAS_EQUATION 8.314 //kPa*L/(K*mol)
#define ONE_ATMOSPHERE 101.325 //kPa
#define MARS_ATMOSPHERE 0.6 //kPa

View File

@@ -61,9 +61,10 @@
interpreter.container = src
interpreter.SetVar("PI", 3.141592653) // value of pi
interpreter.SetVar("E", 2.718281828) // value of e
interpreter.SetVar("SQURT2", 1.414213562) // value of the square root of 2
interpreter.SetVar("TAU", TAU) // value of tau
interpreter.SetVar("PI", PI) // value of pi
interpreter.SetVar("E", E) // value of e
interpreter.SetVar("SQURT2", Sqrt2) // value of the square root of 2
interpreter.SetVar("FALSE", 0) // boolean shortcut to 0
interpreter.SetVar("false", 0) // boolean shortcut to 0
interpreter.SetVar("TRUE", 1) // boolean shortcut to 1