- LOG_MESSAGE(PLID, "modelpath = %s", precache_list[i].modelpath);
- g_engfuncs.pfnPrecacheModel( precache_list[i].modelpath );
+ g_engfuncs.pfnPrecacheModel( precache_list[i].paths.model );
+ if (fileExists( precache_list[i].paths.bmp ))
+ {
+ LOG_MESSAGE(PLID, "Precaching bmp: %s", precache_list[i].paths.bmp);
+ g_engfuncs.pfnPrecacheGeneric( precache_list[i].paths.bmp );
+ }
+ else
+ LOG_MESSAGE(PLID, "File not found: %s", precache_list[i].paths.bmp);