diff --git a/games/quake2max/files/patch-ref_gl__gl_model.c b/games/quake2max/files/patch-ref_gl__gl_model.c index e5c270853f20..9d2fd4530009 100644 --- a/games/quake2max/files/patch-ref_gl__gl_model.c +++ b/games/quake2max/files/patch-ref_gl__gl_model.c @@ -1,29 +1,38 @@ --- ref_gl/gl_model.c.orig Sun Jan 1 15:07:39 2006 +++ ref_gl/gl_model.c Thu Mar 22 00:33:43 2007 @@ -227,7 +227,7 @@ } - out->script = rs = (struct rscript_s *)out->script = RS_FindScript(va("textures/%s",name) ); + out->script = rs = out->script = RS_FindScript(va("textures/%s",name) ); if (rs && rs->picsize.enable) { if (r_numTexSizes < MAX_IMAGES) @@ -459,7 +459,7 @@ while (img != NULL) { strcpy(rs,mod->skins[i]->name); rs[strlen(rs)-4]=0; - (struct rscript_s *)mod->script[i] = RS_FindScript(rs); + mod->script[i] = RS_FindScript(rs); if (mod->script[i]) RS_ReadyScript((rscript_t *)mod->script[i]); i++; @@ -1374,7 +1374,7 @@ strcpy(rs,(char *)pheader + pheader->ofs_skins + i*MAX_SKINNAME); rs[strlen(rs)-4]=0; - (struct rscript_s *)mod->script[i] = RS_FindScript(rs); + mod->script[i] = RS_FindScript(rs); if (mod->script[i]) RS_ReadyScript((rscript_t *)mod->script[i]); } +@@ -1465,7 +1465,7 @@ + } + + +-signed int *Mod_GetTris(short p1, short p2, dtriangle_t *side1, dmdl_t *hdr) ++static signed int Mod_GetTris(short p1, short p2, dtriangle_t *side1, dmdl_t *hdr) + { + dtriangle_t *tris = (dtriangle_t *)((unsigned char*)hdr + hdr->ofs_tris); + int i;