1 #include "game_common.h"
4 const char *status_to_str(int s)
8 case GAME_NONE: return _("Aborted");
9 case GAME_TIME: return _("Time-out");
10 case GAME_GOAL: return _("Success");
11 case GAME_FALL: return _("Fall-out");
12 default: return _("Unknown");
16 void game_comp_grav(float h[3], const float g[3],
22 float y[3] = { 0.0f, 1.0f, 0.0f };
28 /* Compute the gravity vector from the given world rotations. */
30 z[0] = fsinf(V_RAD(view_a));
32 z[2] = fcosf(V_RAD(view_a));
39 m_rot (Z, z, V_RAD(game_rz));
40 m_rot (X, x, V_RAD(game_rx));