light: MatchTargets: disable copying 'style' key/value to the targeting entity. Don't see any reason why that would be done.

This commit is contained in:
Eric Wasylishen 2015-03-25 13:35:03 -06:00
parent f57070b1e0
commit 2cd885729a
1 changed files with 9 additions and 0 deletions

View File

@ -102,12 +102,21 @@ MatchTargets(void)
}
/* set the style on the source ent for switchable lights */
// ericw -- this seems completely useless, why would the
// triggering entity need to have the light's style key?
//
// disabling because it can cause problems, e.g. if the
// triggering entity is a monster, and the style key is used
// by the mod.
#if 0
if (target->style) {
char style[10];
entity->style = target->style;
snprintf(style, sizeof(style), "%d", entity->style);
SetKeyValue(entity, "style", style);
}
#endif
}
}