]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_alias.h
clarifications about the format of svc_fog
[xonotic/darkplaces.git] / model_alias.h
index aafcb33d4578e9e77865ca7a7d9fe8dd7c3a1ee3..2b0031e200724c959cbc0e81db375628f0daad86 100644 (file)
@@ -151,7 +151,7 @@ typedef struct
        float           scale[3];       // multiply byte verts by this
        float           translate[3];   // then add this
        char            name[16];       // frame name from grabbing
-       trivertx_t      verts[];        // variable sized
+       trivertx_t      verts[1];       // variable sized
 } md2frame_t;
 
 // LordHavoc: memory representation is different than disk
@@ -159,9 +159,16 @@ typedef struct
 {
        float           scale[3];       // multiply byte verts by this
        float           translate[3];   // then add this
-       trivert2        verts[];        // variable sized
+       trivert2        verts[1];       // variable sized
 } md2memframe_t;
 
+// must match md2memframe_t, this is just used for sizeof()
+typedef struct
+{
+       float           scale[3];       // multiply byte verts by this
+       float           translate[3];   // then add this
+} md2memframesize_t;
+
 
 // the glcmd format:
 // a positive integer starts a tristrip command, followed by that many