[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:
Bill Currie 2022-05-04 18:00:35 +09:00
parent 2493ca71c7
commit eaaa0f597f
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}