mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 13:51:36 +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
|
||||
|
||||
#include "QF/sys.h"
|
||||
#include "QF/va.h"
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
|
@ -330,7 +331,7 @@ CreateBrushFaces (void)
|
|||
winding_t *w;
|
||||
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_maxs[0] = brush_maxs[1] = brush_maxs[2] = -BOGUS_RANGE;
|
||||
|
||||
|
@ -340,16 +341,14 @@ CreateBrushFaces (void)
|
|||
if (rotate) {
|
||||
entity_t *FoundEntity;
|
||||
const char *searchstring;
|
||||
char text[20];
|
||||
|
||||
searchstring = ValueForKey (CurrentEntity, "target");
|
||||
FoundEntity = FindTargetEntity (searchstring);
|
||||
if (FoundEntity)
|
||||
GetVectorForKey (FoundEntity, "origin", offset);
|
||||
|
||||
snprintf (text, sizeof (text), "%g %g %g",
|
||||
offset[0], offset[1], offset[2]);
|
||||
SetKeyValue (CurrentEntity, "origin", text);
|
||||
SetKeyValue (CurrentEntity, "origin",
|
||||
va ("%g %g %g", VectorExpand (offset)));
|
||||
}
|
||||
|
||||
for (i = 0; i < numbrushfaces; i++) {
|
||||
|
|
Loading…
Reference in a new issue