|
@@ -166,7 +166,6 @@ Entity &Game::getLara() {
|
166
|
166
|
}
|
167
|
167
|
|
168
|
168
|
void Game::processSprites() {
|
169
|
|
- printf("Processing sprites: ");
|
170
|
169
|
for (int i = 0; i < (mTombRaider.NumItems() - 1); i++) {
|
171
|
170
|
if ((mTombRaider.Engine() == TR_VERSION_1) && (mTombRaider.Item()[i].intensity1 == -1))
|
172
|
171
|
continue;
|
|
@@ -176,14 +175,15 @@ void Game::processSprites() {
|
176
|
175
|
getWorld().addSprite(*new SpriteSequence(mTombRaider, i, j));
|
177
|
176
|
}
|
178
|
177
|
}
|
179
|
|
- printf("Done! Found %d sprites.\n", mTombRaider.NumSpriteSequences());
|
|
178
|
+
|
|
179
|
+ getConsole().print("Found %d sprites.", mTombRaider.NumSpriteSequences());
|
180
|
180
|
}
|
181
|
181
|
|
182
|
182
|
void Game::processRooms() {
|
183
|
|
- printf("Processing rooms: ");
|
184
|
183
|
for (int index = 0; index < mTombRaider.NumRooms(); index++)
|
185
|
184
|
getWorld().addRoom(*new Room(mTombRaider, index));
|
186
|
|
- printf("Done! Found %d rooms.\n", mTombRaider.NumRooms());
|
|
185
|
+
|
|
186
|
+ getConsole().print("Found %d rooms.", mTombRaider.NumRooms());
|
187
|
187
|
}
|
188
|
188
|
|
189
|
189
|
void Game::processPakSounds()
|
|
@@ -204,8 +204,6 @@ void Game::processPakSounds()
|
204
|
204
|
// in this group, bits 0-1: channel number
|
205
|
205
|
*/
|
206
|
206
|
|
207
|
|
- printf("Processing pak sound files: ");
|
208
|
|
-
|
209
|
207
|
for (i = 0; i < mTombRaider.getSoundSamplesCount(); ++i)
|
210
|
208
|
{
|
211
|
209
|
mTombRaider.getSoundSample(i, &riffSz, &riff);
|
|
@@ -225,12 +223,9 @@ void Game::processPakSounds()
|
225
|
223
|
//pos[1] = sound[i].y;
|
226
|
224
|
//pos[2] = sound[i].z;
|
227
|
225
|
//getSound().SourceAt(id, pos);
|
228
|
|
-
|
229
|
|
- //printf(".");
|
230
|
|
- //fflush(stdout);
|
231
|
226
|
}
|
232
|
227
|
|
233
|
|
- printf("Done! Found %u files.\n", mTombRaider.getSoundSamplesCount());
|
|
228
|
+ getConsole().print("Found %u sound samples.", mTombRaider.getSoundSamplesCount());
|
234
|
229
|
}
|
235
|
230
|
|
236
|
231
|
void Game::processTextures()
|
|
@@ -239,8 +234,6 @@ void Game::processTextures()
|
239
|
234
|
unsigned char *bumpmap;
|
240
|
235
|
int i;
|
241
|
236
|
|
242
|
|
- printf("Processing TR textures: ");
|
243
|
|
-
|
244
|
237
|
//if ( mTombRaider.getNumBumpMaps())
|
245
|
238
|
// gBumpMapStart = mTombRaider.NumTextures();
|
246
|
239
|
|
|
@@ -270,14 +263,11 @@ void Game::processTextures()
|
270
|
263
|
|
271
|
264
|
if (bumpmap)
|
272
|
265
|
delete [] bumpmap;
|
273
|
|
-
|
274
|
|
- //printf(".");
|
275
|
|
- //fflush(stdout);
|
276
|
266
|
}
|
277
|
267
|
|
278
|
268
|
mTextureOffset = (mTextureStart - 1) + mTombRaider.NumTextures();
|
279
|
269
|
|
280
|
|
- printf("Done! Found %d textures.\n", mTombRaider.NumTextures());
|
|
270
|
+ getConsole().print("Found %d textures.", mTombRaider.NumTextures());
|
281
|
271
|
}
|
282
|
272
|
|
283
|
273
|
void Game::processMoveables()
|
|
@@ -288,8 +278,6 @@ void Game::processMoveables()
|
288
|
278
|
tr2_item_t *item = mTombRaider.Item();
|
289
|
279
|
tr2_sprite_sequence_t *sprite_sequence = mTombRaider.SpriteSequence();
|
290
|
280
|
|
291
|
|
- printf("Processing skeletal models: ");
|
292
|
|
-
|
293
|
281
|
for (int i = 0; i < mTombRaider.NumItems(); ++i)
|
294
|
282
|
{
|
295
|
283
|
int j;
|
|
@@ -364,7 +352,7 @@ void Game::processMoveables()
|
364
|
352
|
}
|
365
|
353
|
*/
|
366
|
354
|
|
367
|
|
- printf("Done! Found %d models.\n", mTombRaider.NumMoveables() + statCount);
|
|
355
|
+ getConsole().print("Found %d moveables.", mTombRaider.NumMoveables() + statCount);
|
368
|
356
|
}
|
369
|
357
|
|
370
|
358
|
// index moveable, i item, sometimes both moveable
|
|
@@ -438,7 +426,7 @@ void Game::setupTextureColor(texture_tri_t *r_tri, float *colorf)
|
438
|
426
|
}
|
439
|
427
|
else
|
440
|
428
|
{
|
441
|
|
- //printf("Color already loaded %i -> 0x%08x\n",
|
|
429
|
+ //getConsole().print("Color already loaded %i -> 0x%08x",
|
442
|
430
|
// gColorTextureHACK.getCurrentIndex(),
|
443
|
431
|
// gColorTextureHACK.current());
|
444
|
432
|
|
|
@@ -451,7 +439,6 @@ void Game::setupTextureColor(texture_tri_t *r_tri, float *colorf)
|
451
|
439
|
|
452
|
440
|
void Game::processModels()
|
453
|
441
|
{
|
454
|
|
- printf("Processing meshes: ");
|
455
|
442
|
for (int index = 0; index < mTombRaider.getMeshCount(); index++) {
|
456
|
443
|
int i, j, count, texture;
|
457
|
444
|
int vertexIndices[6];
|
|
@@ -465,8 +452,6 @@ void Game::processModels()
|
465
|
452
|
{
|
466
|
453
|
//! \fixme allow sparse lists with matching ids instead?
|
467
|
454
|
getWorld().addMesh(NULL); // Filler, to make meshes array ids align
|
468
|
|
- //printf("x");
|
469
|
|
- //fflush(stdout);
|
470
|
455
|
return;
|
471
|
456
|
}
|
472
|
457
|
|
|
@@ -649,6 +634,6 @@ void Game::processModels()
|
649
|
634
|
getWorld().addMesh(mesh);
|
650
|
635
|
}
|
651
|
636
|
|
652
|
|
- printf("Done! Found %d meshes.\n", mTombRaider.getMeshCount());
|
|
637
|
+ getConsole().print("Found %d meshes.", mTombRaider.getMeshCount());
|
653
|
638
|
}
|
654
|
639
|
|