X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=r_sprites.c;h=9bf13fb912f61542abc3bebc5eb473f007d1a939;hp=b9d3293e9b21165958f2071e1ff78b5aa57202bf;hb=6536be64bd178fe115a12c60296b0b5d8b2ca828;hpb=48669036b4be979d997c27227942ed9c430277d5 diff --git a/r_sprites.c b/r_sprites.c index b9d3293e..9bf13fb9 100644 --- a/r_sprites.c +++ b/r_sprites.c @@ -181,7 +181,7 @@ static void R_RotateSprite(const mspriteframe_t *frame, vec3_t origin, vec3_t le // Now that we've kicked center-hotspotted sprites, rotate using the appropriate matrix :) // determine the angle of a sprite, we could only do that once though and - // add a `qboolean initialized' to the mspriteframe_t struct... let's get the direction vector of it :) + // add a `qbool initialized' to the mspriteframe_t struct... let's get the direction vector of it :) angle = atan(dir[1] / dir[0]) * 180.0f/M_PI; @@ -208,7 +208,7 @@ static float spritetexcoord2f[4*2] = {0, 1, 0, 0, 1, 0, 1, 1}; static void R_Model_Sprite_Draw_TransparentCallback(const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfacelist) { int i; - dp_model_t *model = ent->model; + model_t *model = ent->model; vec3_t left, up, org, mforward, mleft, mup, middle; float scale, dx, dy, hud_vs_screen; int edge = 0; @@ -420,7 +420,7 @@ static void R_Model_Sprite_Draw_TransparentCallback(const entity_render_t *ent, for (i = 0; i < 4; i++) R_DebugLine(vertex3f + i * 3, vertex3f + ((i + 1) % 4) * 3); - R_DrawCustomSurface_Texture(texture, &identitymatrix, texture->currentmaterialflags, 0, 4, 0, 2, false, false); + R_DrawCustomSurface_Texture(texture, &identitymatrix, texture->currentmaterialflags, 0, 4, 0, 2, false, false, false); } }