X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sv_main.c;h=1da0531e9af7c9c75aa3a34d5f8ef9033a7aaaf3;hp=867c0bdffa4035940f5ae84886782a64953d86b2;hb=feb22f39c2c1a481b8c7a2364767b6402d5d94a1;hpb=5fd2c001d6a6927f57020d24d34cd2fcbc6c439e diff --git a/sv_main.c b/sv_main.c index 867c0bdf..1da0531e 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1519,12 +1519,12 @@ int SV_ParticleEffectIndex(const char *name) return 0; } -dp_model_t *SV_GetModelByIndex(int modelindex) +model_t *SV_GetModelByIndex(int modelindex) { return (modelindex > 0 && modelindex < MAX_MODELS) ? sv.models[modelindex] : NULL; } -dp_model_t *SV_GetModelFromEdict(prvm_edict_t *ed) +model_t *SV_GetModelFromEdict(prvm_edict_t *ed) { prvm_prog_t *prog = SVVM_prog; int modelindex; @@ -1715,7 +1715,7 @@ void SV_SpawnServer (const char *map) prvm_edict_t *ent; int i; char *entities; - dp_model_t *worldmodel; + model_t *worldmodel; char modelname[sizeof(sv.worldname)]; char vabuf[1024];