- case PRVM_SERVERPROG:
- {
- if(PRVM_serveredictfloat(edict, solid)) // can block other stuff, or is a trigger?
- return true;
- if(PRVM_serveredictfloat(edict, modelindex)) // visible ent?
- return true;
- if(PRVM_serveredictfloat(edict, effects)) // particle effect?
- return true;
- if(PRVM_serveredictfunction(edict, think)) // has a think function?
- if(PRVM_serveredictfloat(edict, nextthink) > 0) // that actually will eventually run?
- return true;
- if(PRVM_serveredictfloat(edict, takedamage))
- return true;
- if(*prvm_leaktest_ignore_classnames.string)
- {
- if(strstr(va(" %s ", prvm_leaktest_ignore_classnames.string), va(" %s ", PRVM_GetString(PRVM_serveredictstring(edict, classname)))))
- return true;
- }
- }
- break;
- case PRVM_CLIENTPROG:
- {
- // TODO someone add more stuff here
- if(PRVM_clientedictfloat(edict, entnum)) // csqc networked
- return true;
- if(PRVM_clientedictfloat(edict, modelindex)) // visible ent?
- return true;
- if(PRVM_clientedictfloat(edict, effects)) // particle effect?
- return true;
- if(PRVM_clientedictfunction(edict, think)) // has a think function?
- if(PRVM_clientedictfloat(edict, nextthink) > 0) // that actually will eventually run?
- return true;
- if(*prvm_leaktest_ignore_classnames.string)
- {
- if(strstr(va(" %s ", prvm_leaktest_ignore_classnames.string), va(" %s ", PRVM_GetString(PRVM_clientedictstring(edict, classname)))))
- return true;
- }
- }
- break;
- case PRVM_MENUPROG:
- // menu prog does not have classnames
- break;
+ if(PRVM_serveredictfloat(edict, solid)) // can block other stuff, or is a trigger?
+ return true;
+ if(PRVM_serveredictfloat(edict, modelindex)) // visible ent?
+ return true;
+ if(PRVM_serveredictfloat(edict, effects)) // particle effect?
+ return true;
+ if(PRVM_serveredictfunction(edict, think)) // has a think function?
+ if(PRVM_serveredictfloat(edict, nextthink) > 0) // that actually will eventually run?
+ return true;
+ if(PRVM_serveredictfloat(edict, takedamage))
+ return true;
+ if(*prvm_leaktest_ignore_classnames.string)
+ {
+ if(strstr(va(vabuf, sizeof(vabuf), " %s ", prvm_leaktest_ignore_classnames.string), va(vabuf2, sizeof(vabuf2), " %s ", PRVM_GetString(prog, PRVM_serveredictstring(edict, classname)))))
+ return true;
+ }
+ }
+ else if (prog == CLVM_prog)
+ {
+ // TODO someone add more stuff here
+ if(PRVM_clientedictfloat(edict, entnum)) // csqc networked
+ return true;
+ if(PRVM_clientedictfloat(edict, modelindex)) // visible ent?
+ return true;
+ if(PRVM_clientedictfloat(edict, effects)) // particle effect?
+ return true;
+ if(PRVM_clientedictfunction(edict, think)) // has a think function?
+ if(PRVM_clientedictfloat(edict, nextthink) > 0) // that actually will eventually run?
+ return true;
+ if(*prvm_leaktest_ignore_classnames.string)
+ {
+ if(strstr(va(vabuf, sizeof(vabuf), " %s ", prvm_leaktest_ignore_classnames.string), va(vabuf2, sizeof(vabuf2), " %s ", PRVM_GetString(prog, PRVM_clientedictstring(edict, classname)))))
+ return true;
+ }
+ }
+ else
+ {
+ // menu prog does not have classnames