Skip to content

Commit f55f68b

Browse files
voidanixTheAssassin
authored andcommitted
Remove MD2 model support
Totally unused in-game, MD3 and MD5 formats are probably better supported as well
1 parent 1808d74 commit f55f68b

File tree

4 files changed

+1
-248
lines changed

4 files changed

+1
-248
lines changed

src/cmake/build_client.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ if(BUILD_CLIENT)
4949
engine/lensflare.h
5050
engine/lightmap.h
5151
engine/lightning.h
52-
engine/md2.h
5352
engine/md3.h
5453
engine/md5.h
5554
engine/model.h

src/engine/md2.h

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

src/engine/model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef MODEL_H
22
#define MODEL_H
3-
enum { MDL_MD2 = 0, MDL_MD3, MDL_MD5, MDL_OBJ, MDL_SMD, MDL_IQM, NUMMODELTYPES };
3+
enum { MDL_MD3 = 0, MDL_MD5, MDL_OBJ, MDL_SMD, MDL_IQM, NUMMODELTYPES };
44

55
struct model
66
{

src/engine/rendermodel.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ static model *__loadmodel__##modelclass(const char *filename) \
2525
} \
2626
UNUSED static int __dummy__##modelclass = addmodeltype((modeltype), __loadmodel__##modelclass);
2727

28-
#include "md2.h"
2928
#include "md3.h"
3029
#include "md5.h"
3130
#include "obj.h"
3231
#include "smd.h"
3332
#include "iqm.h"
3433

35-
MODELTYPE(MDL_MD2, md2);
3634
MODELTYPE(MDL_MD3, md3);
3735
MODELTYPE(MDL_MD5, md5);
3836
MODELTYPE(MDL_OBJ, obj);

0 commit comments

Comments
 (0)