mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 18:52:28 +00:00
Kill a sprintf.
While 16 chars is enough for any 32-bit int, if int ever changes to 64 bit... (need 21). Just avoid the issue with good old va :)
This commit is contained in:
parent
d2909cd4dd
commit
32127d3ec7
1 changed files with 2 additions and 4 deletions
|
@ -53,6 +53,7 @@
|
|||
#include "QF/quakefs.h"
|
||||
#include "QF/script.h"
|
||||
#include "QF/sys.h"
|
||||
#include "QF/va.h"
|
||||
|
||||
#include "light.h"
|
||||
#include "threads.h"
|
||||
|
@ -122,11 +123,8 @@ MatchTargets (void)
|
|||
}
|
||||
// set the style on the source ent for switchable lights
|
||||
if (entities[j].style) {
|
||||
char s[16];
|
||||
|
||||
entities[i].style = entities[j].style;
|
||||
sprintf (s, "%i", entities[i].style);
|
||||
SetKeyValue (&entities[i], "style", s);
|
||||
SetKeyValue (&entities[i], "style", va ("%i", entities[i].style));
|
||||
}
|
||||
|
||||
if (entities[i].spotcone >= 0) {
|
||||
|
|
Loading…
Reference in a new issue