mbspc: fix fixes
This commit is contained in:
parent
8875e2dd80
commit
0a09aff18a
|
|
@ -33,7 +33,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#include "l_log.h"
|
#include "l_log.h"
|
||||||
#include "../mbspc/l_mem.h"
|
#include "../mbspc/l_mem.h"
|
||||||
#include "l_cmd.h"
|
#include "../mbspc/l_cmd.h"
|
||||||
|
|
||||||
#define qtrue true
|
#define qtrue true
|
||||||
#define qfalse false
|
#define qfalse false
|
||||||
|
|
|
||||||
|
|
@ -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
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
===========================================================================
|
===========================================================================
|
||||||
*/
|
*/
|
||||||
|
#include <float.h>
|
||||||
|
|
||||||
#include "qbsp.h"
|
#include "qbsp.h"
|
||||||
#include "float.h"
|
|
||||||
#include "../botlib/aasfile.h"
|
#include "../botlib/aasfile.h"
|
||||||
#include "aas_store.h"
|
#include "aas_store.h"
|
||||||
#include "aas_cfg.h"
|
#include "aas_cfg.h"
|
||||||
|
|
|
||||||
|
|
@ -307,7 +307,6 @@ int HL_CompressVis(byte *vis, byte *dest);
|
||||||
void HL_LoadBSPFile(char *filename, int offset, int length);
|
void HL_LoadBSPFile(char *filename, int offset, int length);
|
||||||
void HL_WriteBSPFile(char *filename);
|
void HL_WriteBSPFile(char *filename);
|
||||||
void HL_PrintBSPFileSizes(void);
|
void HL_PrintBSPFileSizes(void);
|
||||||
void HL_PrintBSPFileSizes(void);
|
|
||||||
void HL_ParseEntities(void);
|
void HL_ParseEntities(void);
|
||||||
void HL_UnparseEntities(void);
|
void HL_UnparseEntities(void);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ void Q3_SurfacePlane(q3_dsurface_t *surface, vec3_t normal, float *dist)
|
||||||
*/
|
*/
|
||||||
if (VectorLength(normal) < 0.9)
|
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]);
|
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++)
|
for (i = 0; i < surface->numVerts; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ typedef struct
|
||||||
|
|
||||||
typedef struct texinfo_s
|
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 flags; // miptex flags + overrides
|
||||||
int value; // light emission, etc
|
int value; // light emission, etc
|
||||||
char texture[32]; // texture name (textures/*.wal)
|
char texture[32]; // texture name (textures/*.wal)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user