clothing* equipcache::getcloth(int iid)
	{
		if (!clothes.count(iid))
		{
			clothes[iid] = clothing(iid, &bodyinfo.posmap);
		}
		return &clothes[iid];
	}
Beispiel #2
0
	clothing lookfactory::getcloth(int iid)
	{
		if (!clothes.count(iid))
		{
			clothes[iid] = clothing(iid, &bodyheadmap);
		}
		return clothes[iid];
	}
	clothing* equipcache::getcloth(int iid)
	{
		if (!clothes.count(iid))
		{
			app.getimgcache()->setmode(ict_sys);
			clothes[iid] = clothing(iid, &bodyinfo.posmap);
			app.getimgcache()->unlock();
		}
		return &clothes[iid];
	}