fix: problems with breakable on cs_mari (ref #686)
fix: goal selection on some zombie maps (ref #684)
This commit is contained in:
parent
aeff9f8d46
commit
d6d76e136d
12 changed files with 95 additions and 86 deletions
|
|
@ -459,7 +459,7 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int interfaceVersion) {
|
|||
// would all have the dull "models/player.mdl" one). The entity for which the keyvalue data
|
||||
// pointer is requested is pentKeyvalue, the pointer to the keyvalue data structure pkvd.
|
||||
|
||||
if (game.isNullEntity (ent) && strcmp (ent->v.classname.chars (), "func_breakable") == 0) {
|
||||
if (!game.isNullEntity (ent) && strcmp (ent->v.classname.chars (), "func_breakable") == 0) {
|
||||
if (kvd && kvd->szKeyName && strcmp (kvd->szKeyName, "material") == 0) {
|
||||
if (atoi (kvd->szValue) == 7) {
|
||||
game.markBreakableAsInvalid (ent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue