Entity loading from maps seems to work.

This commit is contained in:
Bill Currie 2010-09-12 19:57:34 +09:00
parent f6ebcd45ac
commit f8ce05d862

View file

@ -100,6 +100,7 @@ vec3_t bad_maxs = { 8, 8, 8 };
free (e->value); free (e->value);
free (e); free (e);
} }
[array release];
[super dealloc]; [super dealloc];
} }
@ -298,7 +299,8 @@ int nument;
int i, c; int i, c;
float *color; float *color;
self = [self init]; self = [super init];
array = [[NSMutableArray alloc] init];
if (!Script_GetToken (script, true)) { if (!Script_GetToken (script, true)) {
[self dealloc]; [self dealloc];
@ -342,7 +344,7 @@ int nument;
} }
if (![self count] && esize == esize_model) { if (![self count] && esize == esize_model) {
printf ("WARNING:Entity with no brushes and esize_model\n"); printf ("WARNING:Entity with no brushes and esize_model: %s\n", [self valueForQKey:"classname"]);
[texturepalette_i getTextureDef:&td]; [texturepalette_i getTextureDef:&td];
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
emins[i] = org[i] - 8; emins[i] = org[i] - 8;