X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmodels%2Fall.qh;h=b81567427767f030fb5742c87be7089f4c56afe6;hp=f38b23fff9f63508aac9e60a955fd2cf5d1a8d7a;hb=e9f30b97435c6afe3d6911f21e1f4fd1b97e93da;hpb=dc4826c13d66ebc34a49ba927dd1bcf6edf7bf20 diff --git a/qcsrc/common/models/all.qh b/qcsrc/common/models/all.qh index f38b23fff..b81567427 100644 --- a/qcsrc/common/models/all.qh +++ b/qcsrc/common/models/all.qh @@ -11,7 +11,7 @@ REGISTER_REGISTRY(RegisterModels) string MDL_##name##_get() { return path; } \ REGISTER(RegisterModels, MDL, Models, name, m_id, NEW(Model, MDL_##name##_get)) -STATIC_INIT(RegisterModels_precache) { +PRECACHE(Models) { FOREACH(Models, true, LAMBDA({ it.model_precache(it); }));