mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[scene] Set the color for new entities
Black doesn't show up too well on black. Really, this isn't the best fix, but it will do until I can rework entities to use a component system.
This commit is contained in:
parent
2493ca71c7
commit
eaaa0f597f
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
|||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "QF/mathlib.h"
|
||||
#include "QF/progs.h" // for PR_RESMAP
|
||||
#include "QF/sys.h"
|
||||
|
||||
|
@ -84,6 +85,8 @@ Scene_CreateEntity (scene_t *scene)
|
|||
hierarchy_t *h = ent->transform->hierarchy;
|
||||
h->entity.a[ent->transform->index] = ent;
|
||||
|
||||
QuatSet (1, 1, 1, 1, ent->renderer.colormod);
|
||||
|
||||
return ent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue