diff options
author | neoraider <devnull@localhost> | 2007-11-01 00:15:01 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-11-01 00:15:01 +0100 |
commit | da5b329d8aded1526d4e4ec9d49c2f6359a4ee97 (patch) | |
tree | dbb01f9e1247cc5e02ad2083110ea1fb58136233 | |
parent | 2664e16406ac9d77f8f56984914f70128fcdaf52 (diff) | |
download | libneofx-da5b329d8aded1526d4e4ec9d49c2f6359a4ee97.tar libneofx-da5b329d8aded1526d4e4ec9d49c2f6359a4ee97.zip |
libneofx: Fixed some warnings with -Wall
-rw-r--r-- | math.c | 8 | ||||
-rw-r--r-- | physics.c | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -76,22 +76,22 @@ int VectorEqual(VECTOR v1, VECTOR v2) { } MATRIX MatrixIdentity() { - MATRIX m = { + MATRIX m = {.f = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 - }; + }}; return m; } MATRIX MatrixMul(MATRIX m1, MATRIX m2) { - MATRIX m = { + MATRIX m = {.f = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 - }; + }}; short i, j, k; for(i = 0; i < 4; i++) @@ -2,7 +2,7 @@ #include <neofx/math.h> #include <math.h> -static VECTOR gravitation = {0, -9.8, 0}; +static VECTOR gravitation = {{0, -9.8, 0}}; void SetGravitation(VECTOR v) { |