mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
Nuke another buffer.
Though snprintf was used, not having a buffer just makes things cleaner.
This commit is contained in:
parent
e6e1b10c58
commit
505660dffe
1 changed files with 4 additions and 5 deletions
|
@ -28,6 +28,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "QF/sys.h"
|
#include "QF/sys.h"
|
||||||
|
#include "QF/va.h"
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
||||||
|
@ -330,7 +331,7 @@ CreateBrushFaces (void)
|
||||||
winding_t *w;
|
winding_t *w;
|
||||||
vec3_t offset, point;
|
vec3_t offset, point;
|
||||||
|
|
||||||
offset[0] = offset[1] = offset[2] = 0;
|
VectorZero (offset);
|
||||||
brush_mins[0] = brush_mins[1] = brush_mins[2] = BOGUS_RANGE;
|
brush_mins[0] = brush_mins[1] = brush_mins[2] = BOGUS_RANGE;
|
||||||
brush_maxs[0] = brush_maxs[1] = brush_maxs[2] = -BOGUS_RANGE;
|
brush_maxs[0] = brush_maxs[1] = brush_maxs[2] = -BOGUS_RANGE;
|
||||||
|
|
||||||
|
@ -340,16 +341,14 @@ CreateBrushFaces (void)
|
||||||
if (rotate) {
|
if (rotate) {
|
||||||
entity_t *FoundEntity;
|
entity_t *FoundEntity;
|
||||||
const char *searchstring;
|
const char *searchstring;
|
||||||
char text[20];
|
|
||||||
|
|
||||||
searchstring = ValueForKey (CurrentEntity, "target");
|
searchstring = ValueForKey (CurrentEntity, "target");
|
||||||
FoundEntity = FindTargetEntity (searchstring);
|
FoundEntity = FindTargetEntity (searchstring);
|
||||||
if (FoundEntity)
|
if (FoundEntity)
|
||||||
GetVectorForKey (FoundEntity, "origin", offset);
|
GetVectorForKey (FoundEntity, "origin", offset);
|
||||||
|
|
||||||
snprintf (text, sizeof (text), "%g %g %g",
|
SetKeyValue (CurrentEntity, "origin",
|
||||||
offset[0], offset[1], offset[2]);
|
va ("%g %g %g", VectorExpand (offset)));
|
||||||
SetKeyValue (CurrentEntity, "origin", text);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < numbrushfaces; i++) {
|
for (i = 0; i < numbrushfaces; i++) {
|
||||||
|
|
Loading…
Reference in a new issue