|
@@ -36,7 +36,7 @@ std::map<int, int> gMapTex2Bump;
|
36
|
36
|
Game::Game() {
|
37
|
37
|
mLoaded = false;
|
38
|
38
|
mName = NULL;
|
39
|
|
- mLara = 0;
|
|
39
|
+ mLara = -1;
|
40
|
40
|
mTextureStart = 0;
|
41
|
41
|
mTextureOffset = 0;
|
42
|
42
|
}
|
|
@@ -395,7 +395,7 @@ void Game::processMoveable(int index, int i, int object_id)
|
395
|
395
|
}
|
396
|
396
|
|
397
|
397
|
if (!cached) {
|
398
|
|
- getWorld().addSkeletalModel(*new SkeletalModel(mTombRaider /* ... */));
|
|
398
|
+ getWorld().addSkeletalModel(*new SkeletalModel(mTombRaider, index));
|
399
|
399
|
}
|
400
|
400
|
|
401
|
401
|
getWorld().addEntity(*new Entity(mTombRaider, /* ... */ mod));
|
|
@@ -448,13 +448,6 @@ void Game::processMoveable(int index, int i, int object_id)
|
448
|
448
|
}
|
449
|
449
|
}
|
450
|
450
|
|
451
|
|
- //! \fixme Check here and see if we already have one for object_id later
|
452
|
|
- // if (getWorld().isCachedSkeletalModel(moveable[index].object_id))
|
453
|
|
- // {
|
454
|
|
- // thing->modelId = getRender().add(sModel);
|
455
|
|
- // return;
|
456
|
|
- // }
|
457
|
|
-
|
458
|
451
|
skeletal_model_t *r_model = new skeletal_model_t;
|
459
|
452
|
r_model->id = moveable[index].object_id;
|
460
|
453
|
|
|
@@ -588,16 +581,14 @@ void Game::processMoveable(int index, int i, int object_id)
|
588
|
581
|
return;
|
589
|
582
|
}
|
590
|
583
|
|
591
|
|
- int aloop = mTombRaider.getNumAnimsForMoveable(index);
|
592
|
|
-
|
593
|
584
|
//a = moveable[index].animation;
|
594
|
585
|
//frame_offset = animation[a].frame_offset / 2;
|
595
|
586
|
//frame_step = animation[a].frame_size;
|
596
|
587
|
|
597
|
|
- for (; a < aloop; ++a,
|
598
|
|
- frame_offset = animation[a].frame_offset / 2,
|
599
|
|
- frame_step = animation[a].frame_size)
|
600
|
|
- {
|
|
588
|
+ for (; a < mTombRaider.getNumAnimsForMoveable(index); a++) {
|
|
589
|
+ frame_offset = animation[a].frame_offset / 2;
|
|
590
|
+ frame_step = animation[a].frame_size;
|
|
591
|
+
|
601
|
592
|
animation_frame_t *animation_frame = new animation_frame_t;
|
602
|
593
|
r_model->animation.push_back(animation_frame);
|
603
|
594
|
|