X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fcsqcmodel_hooks.qc;h=30148bdd44e7f4be1fb88b33d406ae203b525788;hb=ccf145b9b0372a5b402465ab578ca48d943ffd88;hp=35f28bdca4dec5baea11b3a20dc3db4ca0a76322;hpb=e9815ad279dc61506e5e65c34348fa7dcc570b9e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 35f28bdca..30148bdd4 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -389,7 +389,7 @@ void CSQCPlayer_FallbackFrame_Apply(entity this) void CSQCModel_AutoTagIndex_Apply(entity this) { if(this.tag_entity && wasfreed(this.tag_entity)) - this.tag_entity = world; + this.tag_entity = NULL; viewloc_SetTags(this); @@ -401,7 +401,7 @@ void CSQCModel_AutoTagIndex_Apply(entity this) bool changed = 0; if(this.tag_entity.entnum != this.tag_networkentity) { - this.tag_entity = findfloat(world, entnum, this.tag_networkentity); + this.tag_entity = findfloat(NULL, entnum, this.tag_networkentity); changed = 1; } @@ -431,7 +431,7 @@ void CSQCModel_AutoTagIndex_Apply(entity this) if(!this.tag_index) { // we need to prevent this from 'appening - this.tag_entity = world; + this.tag_entity = NULL; this.drawmask = 0; LOG_TRACE("h_ model lacks weapon attachment, but v_ model is attached to it\n"); }