Cube  Diff

Differences From Artifact [81b3ccc9f0]:

To Artifact [2902b001e4]:


91
92
93
94
95
96
97
98

99
100
101
102
103
104
105
106
91
92
93
94
95
96
97

98

99
100
101
102
103
104
105







-
+
-







static struct sphere spheres[MAXSPHERES], *slist = NULL, *sempty = NULL;
bool sinit = false;

void
newsphere(const OFVector3D *o, float max, int type)
{
	if (!sinit) {
		loopi(MAXSPHERES)
		for (int i = 0; i < MAXSPHERES; i++) {
		{
			spheres[i].next = sempty;
			sempty = &spheres[i];
		}
		sinit = true;
	}
	if (sempty) {
		struct sphere *p = sempty;
214
215
216
217
218
219
220
221

222
223
224
225
226
227
228
229
213
214
215
216
217
218
219

220

221
222
223
224
225
226
227







-
+
-








	if ([lastsky isEqual:basename])
		return;

	static const OFString *side[] = { @"ft", @"bk", @"lf", @"rt", @"dn",
		@"up" };
	int texnum = 14;
	loopi(6)
	for (int i = 0; i < 6; i++) {
	{
		OFString *path = [OFString
		    stringWithFormat:@"packages/%@_%@.jpg", basename, side[i]];

		int xs, ys;
		if (!installtex(texnum + i,
		        [Cube.sharedInstance.gameDataIRI
		            IRIByAppendingPathComponent:path],