Rename IBSQ -> QBSP

This commit is contained in:
Denis Pauk 2023-10-03 01:05:16 +03:00
parent 1572b5ff2d
commit 13b4d324d0
7 changed files with 12 additions and 12 deletions

View file

@ -33,7 +33,7 @@ State:
Goals (none of it finished):
* Single player support,
* BSPX DECOUPLEDLM light map support (base1),
* IBSQ map format support (mguhub),
* QBSP map format support (mguhub),
* MD5 model support,
* modified ReRelease game code support with removed KEX only related code,
* RoQ and Theora cinematic videos support.

View file

@ -893,7 +893,7 @@ Mod_LoadBrushModel(model_t *mod, const void *buffer, int modfilelen)
i = LittleLong(header->ident);
if (i != IDBSPHEADER && i != QDBSPHEADER)
if (i != IDBSPHEADER && i != QBSPHEADER)
{
ri.Sys_Error(ERR_DROP, "%s: %s has wrong ident (%i should be %i)",
__func__, mod->name, i, IDBSPHEADER);
@ -1129,7 +1129,7 @@ Mod_ForName(const char *name, model_t *parent_model, qboolean crash)
case IDBSPHEADER:
/* fall through */
case QDBSPHEADER:
case QBSPHEADER:
Mod_LoadBrushModel(mod, buf, modfilelen);
break;

View file

@ -818,7 +818,7 @@ Mod_LoadBrushModel(gl3model_t *mod, const void *buffer, int modfilelen)
i = LittleLong(header->ident);
if (i != IDBSPHEADER && i != QDBSPHEADER)
if (i != IDBSPHEADER && i != QBSPHEADER)
{
ri.Sys_Error(ERR_DROP, "%s: %s has wrong ident (%i should be %i)",
__func__, mod->name, i, IDBSPHEADER);
@ -1054,7 +1054,7 @@ Mod_ForName (const char *name, gl3model_t *parent_model, qboolean crash)
case IDBSPHEADER:
/* fall through */
case QDBSPHEADER:
case QBSPHEADER:
Mod_LoadBrushModel(mod, buf, modfilelen);
break;

View file

@ -681,7 +681,7 @@ Mod_LoadBrushModel(model_t *mod, const void *buffer, int modfilelen)
i = LittleLong(header->ident);
if (i != IDBSPHEADER && i != QDBSPHEADER)
if (i != IDBSPHEADER && i != QBSPHEADER)
{
ri.Sys_Error(ERR_DROP, "%s: %s has wrong ident (%i should be %i)",
__func__, mod->name, i, IDBSPHEADER);
@ -921,7 +921,7 @@ Mod_ForName(const char *name, model_t *parent_model, qboolean crash)
case IDBSPHEADER:
/* fall through */
case QDBSPHEADER:
case QBSPHEADER:
Mod_LoadBrushModel(mod, buf, modfilelen);
break;

View file

@ -878,7 +878,7 @@ Mod_LoadBrushModel(model_t *mod, const void *buffer, int modfilelen)
i = LittleLong(header->ident);
if (i != IDBSPHEADER && i != QDBSPHEADER)
if (i != IDBSPHEADER && i != QBSPHEADER)
{
ri.Sys_Error(ERR_DROP, "%s: %s has wrong ident (%i should be %i)",
__func__, mod->name, i, IDBSPHEADER);
@ -1125,7 +1125,7 @@ Mod_ForName (const char *name, model_t *parent_model, qboolean crash)
case IDBSPHEADER:
/* fall through */
case QDBSPHEADER:
case QBSPHEADER:
Mod_LoadBrushModel(mod, buf, modfilelen);
break;

View file

@ -1937,7 +1937,7 @@ CM_LoadMap(char *name, qboolean clientload, unsigned *checksum)
((int *)&header)[i] = LittleLong(((int *)&header)[i]);
}
if (header.ident != IDBSPHEADER && header.ident != QDBSPHEADER)
if (header.ident != IDBSPHEADER && header.ident != QBSPHEADER)
{
Com_Error(ERR_DROP, "%s: %s has wrong ident (%i should be %i)",
__func__, name, header.ident, IDBSPHEADER);

View file

@ -350,8 +350,8 @@ typedef struct {
/* .BSP file format */
#define IDBSPHEADER (('P' << 24) + ('S' << 16) + ('B' << 8) + 'I') /* little-endian "IBSP" */
#define QDBSPHEADER (('P' << 24) + ('S' << 16) + ('B' << 8) + 'Q') /* little-endian "IBSQ" */
#define BSPXHEADER (('X' << 24) + ('P' << 16) + ('S' << 8) + 'B') /* little-endian "BSPX" */
#define QBSPHEADER (('P' << 24) + ('S' << 16) + ('B' << 8) + 'Q') /* little-endian "QBSP" */
#define BSPXHEADER (('X' << 24) + ('P' << 16) + ('S' << 8) + 'B') /* little-endian "BSPX" */
#define BSPVERSION 38
#define BSPDKMVERSION 41