mbspc: fix fixes

This commit is contained in:
Garux 2019-02-10 17:22:42 +03:00
parent 8875e2dd80
commit 0a09aff18a
5 changed files with 10 additions and 11 deletions

View File

@ -33,7 +33,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "l_log.h"
#include "../mbspc/l_mem.h"
#include "l_cmd.h"
#include "../mbspc/l_cmd.h"
#define qtrue true
#define qfalse false

View File

@ -19,9 +19,9 @@ along with Foobar; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#include <float.h>
#include "qbsp.h"
#include "float.h"
#include "../botlib/aasfile.h"
#include "aas_store.h"
#include "aas_cfg.h"

View File

@ -307,7 +307,6 @@ int HL_CompressVis(byte *vis, byte *dest);
void HL_LoadBSPFile(char *filename, int offset, int length);
void HL_WriteBSPFile(char *filename);
void HL_PrintBSPFileSizes(void);
void HL_PrintBSPFileSizes(void);
void HL_ParseEntities(void);
void HL_UnparseEntities(void);

View File

@ -217,7 +217,7 @@ void Q3_SurfacePlane(q3_dsurface_t *surface, vec3_t normal, float *dist)
*/
if (VectorLength(normal) < 0.9)
{
printf("surface %td bogus normal vector %f %f %f\n", surface - q3_drawSurfaces, normal[0], normal[1], normal[2]);
printf("surface %ld bogus normal vector %f %f %f\n", (long)( surface - q3_drawSurfaces ), normal[0], normal[1], normal[2]);
printf("t1 = %f %f %f, t2 = %f %f %f\n", t1[0], t1[1], t1[2], t2[0], t2[1], t2[2]);
for (i = 0; i < surface->numVerts; i++)
{

View File

@ -396,7 +396,7 @@ typedef struct
typedef struct texinfo_s
{
float vecs[2][8]; // [s/t][xyz offset]
float vecs[2][4]; // [s/t][xyz offset]
int flags; // miptex flags + overrides
int value; // light emission, etc
char texture[32]; // texture name (textures/*.wal)