light: remove the old -compress option
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
af80a06f74
commit
4abc7d31b7
|
|
@ -6,9 +6,10 @@ Unreleased
|
||||||
* qbsp: include clip brushes when calculating bmodel bounding box
|
* qbsp: include clip brushes when calculating bmodel bounding box
|
||||||
* qbsp: enable creation of clip-only bmodels
|
* qbsp: enable creation of clip-only bmodels
|
||||||
* light: implemented self shadowing and full shadows for brush models
|
* light: implemented self shadowing and full shadows for brush models
|
||||||
* light: removed the "-nominlimit" option (now the default behaviour)
|
|
||||||
* light: remove support for negative color components (never worked properly)
|
|
||||||
* light: implemented the "-soft" command line option
|
* light: implemented the "-soft" command line option
|
||||||
|
* light: remove support for negative color components (never worked properly)
|
||||||
|
* light: removed the "-nominlimit" option (now the default behaviour)
|
||||||
|
* light: removed the "-compress" option (a bad idea from long ago)
|
||||||
* vis: changed the default testlevel to 4
|
* vis: changed the default testlevel to 4
|
||||||
|
|
||||||
2013-03-07 TyrUtils v0.6
|
2013-03-07 TyrUtils v0.6
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,6 @@ extern byte *filebase;
|
||||||
extern byte *lit_filebase;
|
extern byte *lit_filebase;
|
||||||
|
|
||||||
extern int oversample;
|
extern int oversample;
|
||||||
extern qboolean compress_ents;
|
|
||||||
extern qboolean colored;
|
extern qboolean colored;
|
||||||
extern qboolean litfile;
|
extern qboolean litfile;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -455,20 +455,9 @@ WriteEntitiesToString(void)
|
||||||
end += 2;
|
end += 2;
|
||||||
|
|
||||||
for (ep = entities[i].epairs; ep; ep = ep->next) {
|
for (ep = entities[i].epairs; ep; ep = ep->next) {
|
||||||
if (compress_ents && !strncmp(entities[i].classname, "light", 5)) {
|
sprintf(line, "\"%s\" \"%s\"\n", ep->key, ep->value);
|
||||||
if (!strcmp(ep->key, "classname") ||
|
strcat(end, line);
|
||||||
!strcmp(ep->key, "origin") ||
|
end += strlen(line);
|
||||||
!strcmp(ep->key, "targetname") ||
|
|
||||||
!strcmp(ep->key, "spawnflags")) {
|
|
||||||
sprintf(line, "\"%s\" \"%s\"\n", ep->key, ep->value);
|
|
||||||
strcat(end, line);
|
|
||||||
end += strlen(line);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
sprintf(line, "\"%s\" \"%s\"\n", ep->key, ep->value);
|
|
||||||
strcat(end, line);
|
|
||||||
end += strlen(line);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
strcat(end, "}\n");
|
strcat(end, "}\n");
|
||||||
end += 2;
|
end += 2;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ static modelinfo_t *modelinfo;
|
||||||
const dmodel_t *const *tracelist;
|
const dmodel_t *const *tracelist;
|
||||||
|
|
||||||
int oversample = 1;
|
int oversample = 1;
|
||||||
qboolean compress_ents;
|
|
||||||
qboolean colored;
|
qboolean colored;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -243,9 +242,6 @@ main(int argc, const char **argv)
|
||||||
fadegate = atof(argv[++i]);
|
fadegate = atof(argv[++i]);
|
||||||
} else if (!strcmp(argv[i], "-light")) {
|
} else if (!strcmp(argv[i], "-light")) {
|
||||||
minlight.light = atof(argv[++i]);
|
minlight.light = atof(argv[++i]);
|
||||||
} else if (!strcmp(argv[i], "-compress")) {
|
|
||||||
compress_ents = true;
|
|
||||||
logprint("light entity compression enabled\n");
|
|
||||||
} else if (!strcmp(argv[i], "-lit")) {
|
} else if (!strcmp(argv[i], "-lit")) {
|
||||||
colored = true;
|
colored = true;
|
||||||
} else if (!strcmp(argv[i], "-soft")) {
|
} else if (!strcmp(argv[i], "-soft")) {
|
||||||
|
|
@ -262,7 +258,7 @@ main(int argc, const char **argv)
|
||||||
if (i != argc - 1) {
|
if (i != argc - 1) {
|
||||||
printf("usage: light [-threads num] [-light num] [-extra|-extra4]\n"
|
printf("usage: light [-threads num] [-light num] [-extra|-extra4]\n"
|
||||||
" [-dist n] [-range n] [-gate n] [-lit]\n"
|
" [-dist n] [-range n] [-gate n] [-lit]\n"
|
||||||
" [-soft [n]] [-compress] bspfile\n");
|
" [-soft [n]] bspfile\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue