Skip to content

Commit 1e47ea5

Browse files
committed
Removed MDO for now
1 parent 89d67c8 commit 1e47ea5

7 files changed

Lines changed: 2 additions & 931 deletions

File tree

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ ifeq ($(PLATFORM),mingw32)
598598
TOOLS_BINEXT=.exe
599599
endif
600600

601-
LIBS= -lws2_32 -lwinmm
601+
LIBS= -lws2_32 -lwinmm
602602
CLIENT_LDFLAGS += -mwindows
603603
CLIENT_LIBS = -lgdi32 -lole32
604604
RENDERER_LIBS = -lgdi32 -lole32 -lopengl32
@@ -1719,7 +1719,6 @@ Q3ROAOBJ = \
17191719
$(B)/renderer_oa/tr_mesh.o \
17201720
$(B)/renderer_oa/tr_model.o \
17211721
$(B)/renderer_oa/tr_model_iqm.o \
1722-
$(B)/renderer_oa/tr_model_mdo.o \
17231722
$(B)/renderer_oa/tr_noise.o \
17241723
$(B)/renderer_oa/tr_scene.o \
17251724
$(B)/renderer_oa/tr_shade.o \
@@ -1794,7 +1793,6 @@ Q3RSOFTOBJ = \
17941793
$(B)/renderer_oa/tr_mesh.o \
17951794
$(B)/renderer_oa/tr_model.o \
17961795
$(B)/renderer_oa/tr_model_iqm.o \
1797-
$(B)/renderer_oa/tr_model_mdo.o \
17981796
$(B)/renderer_oa/tr_noise.o \
17991797
$(B)/renderer_oa/tr_scene.o \
18001798
$(B)/renderer_oa/tr_shade.o \

code/renderer_oa/tr_local.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3131
#include "../renderercommon/tr_public.h"
3232
#include "../renderercommon/tr_common.h"
3333
#include "../renderercommon/iqm.h"
34-
#include "tr_mdo.h"
3534
#include "../renderercommon/qgl.h"
3635

3736
#define GL_INDEX_TYPE GL_UNSIGNED_INT
@@ -567,7 +566,6 @@ typedef enum {
567566
SF_POLY,
568567
SF_MD3,
569568
SF_MDR,
570-
SF_MDO,
571569
SF_IQM,
572570
SF_FLARE,
573571
SF_ENTITY, // beams, rails, lightning, etc that can be determined by entity
@@ -980,7 +978,7 @@ typedef struct model_s {
980978
int dataSize; // just for listing purposes
981979
bmodel_t *bmodel; // only if type == MOD_BRUSH
982980
md3Header_t *md3[MD3_MAX_LODS]; // only if type == MOD_MESH
983-
void *modelData; // only if type == (MOD_MDR | MOD_IQM | MOD_MDO)
981+
void *modelData; // only if type == (MOD_MDR | MOD_IQM)
984982

985983
int numLods;
986984
} model_t;

code/renderer_oa/tr_main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,9 +1249,6 @@ void R_AddEntitySurfaces (void) {
12491249
case MOD_MDR:
12501250
R_MDRAddAnimSurfaces( ent );
12511251
break;
1252-
case MOD_MDO:
1253-
R_AddMDOSurfaces( ent );
1254-
break;
12551252
case MOD_IQM:
12561253
R_AddIQMSurfaces( ent );
12571254
break;

code/renderer_oa/tr_mdo.h

Lines changed: 0 additions & 116 deletions
This file was deleted.

code/renderer_oa/tr_model.c

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2727

2828
static qboolean R_LoadMD3(model_t *mod, int lod, void *buffer, const char *name );
2929
static qboolean R_LoadMDR(model_t *mod, void *buffer, int filesize, const char *name );
30-
qboolean R_LoadMDO( model_t *mod, void *buffer, int filesize, const char *mod_name );
3130
extern int ismaptexture; // leilei - for listing map textures
3231
/*
3332
====================
@@ -183,47 +182,6 @@ qhandle_t R_RegisterIQM(const char *name, model_t *mod)
183182
}
184183

185184

186-
/*
187-
====================
188-
R_RegisterMDO
189-
====================
190-
*/
191-
qhandle_t R_RegisterMDO(const char *name, model_t *mod)
192-
{
193-
union {
194-
unsigned *u;
195-
void *v;
196-
} buf;
197-
qboolean loaded = qfalse;
198-
#if 0
199-
int filesize =
200-
#endif
201-
ri.FS_ReadFile(name, (void **) &buf.v);
202-
if(!buf.u)
203-
{
204-
mod->type = MOD_BAD;
205-
return 0;
206-
}
207-
#if 0
208-
int ident = LittleLong(*(unsigned *)buf.u);
209-
if(ident == MDO_IDENT)
210-
loaded = R_LoadMDO(mod, buf.u, filesize, name);
211-
#endif
212-
213-
ri.FS_FreeFile (buf.v);
214-
215-
if(!loaded)
216-
{
217-
ri.Printf(PRINT_WARNING,"R_RegisterMDO: couldn't load mdo file %s\n", name);
218-
mod->type = MOD_BAD;
219-
return 0;
220-
}
221-
222-
return mod->index;
223-
}
224-
225-
226-
227185

228186
typedef struct
229187
{
@@ -236,7 +194,6 @@ typedef struct
236194
static modelExtToLoaderMap_t modelLoaders[ ] =
237195
{
238196
{ "iqm", R_RegisterIQM },
239-
{ "mdo", R_RegisterMDO },
240197
{ "mdr", R_RegisterMDR },
241198
{ "md3", R_RegisterMD3 }
242199
};

0 commit comments

Comments
 (0)