X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cgamevm.c;h=721c339212d61246b8258e6f4c2ffceca0bea580;hp=a2dc929462c9dbade642f56abfab1723adb682eb;hb=3f94d889aed3fc9aa2fc39ae80c3d00bc56f991f;hpb=e24d834dcbcc61f28fdf0e2c1ba75693d9e23ed1 diff --git a/cgamevm.c b/cgamevm.c index a2dc9294..721c3392 100644 --- a/cgamevm.c +++ b/cgamevm.c @@ -167,7 +167,9 @@ void CGVM_Draw_Entity(const cgdrawentity_t *e) void CGVM_Draw_Light(const cgdrawlight_t *l) { - CL_AllocDlight(NULL, (float *) l->origin, 1, l->light[0], l->light[1], l->light[2], 0, 0); + matrix4x4_t matrix; + Matrix4x4_CreateTranslate(&matrix, l->origin[0], l->origin[1], l->origin[2]); + CL_AllocDlight(NULL, &matrix, l->radius, l->color[0], l->color[1], l->color[2], 0, 0, 0, 0, true, 1); } void *CGVM_Malloc(const int size)