--- deliantra/server/include/object.h 2007/05/18 12:13:02 1.124 +++ deliantra/server/include/object.h 2007/05/19 00:08:11 1.125 @@ -320,6 +320,18 @@ open_container (0); } + // overwrite the attachable invoke function with a version that also checks ev_want_type + bool invoke (event_type event, ...) + { + if (ev_want_event [event] || ev_want_type [type] || cb) + { + va_list ap; + va_start (ap, event); + vinvoke (event, ap); + va_end (ap); + } + } + MTH void instantiate (); // recalculate all stats