summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorColin Noga <Tempus@Spectrum-Song.local>2011-10-14 18:10:36 -0500
committerColin Noga <Tempus@Spectrum-Song.local>2011-10-14 18:10:36 -0500
commit51861f825f6c0efd7814309417d038dbb5bc3bba (patch)
treee0878d462bbfc91a1e96d4fca1ca4f3f021c1cce /include
parentaecb0ff2ad22f35dbc392a99de6c3d270e0d0a48 (diff)
parentc624775bf5f5c57757fdc5b24891dca83d7f81fd (diff)
downloadkamek-51861f825f6c0efd7814309417d038dbb5bc3bba.tar.gz
kamek-51861f825f6c0efd7814309417d038dbb5bc3bba.zip
Merge branch 'level-select' of ssh://treeki.shacknet.nu:30000/Kamek into level-select
Diffstat (limited to '')
-rw-r--r--include/g3dhax.h8
-rwxr-xr-xinclude/game.h23
2 files changed, 4 insertions, 27 deletions
diff --git a/include/g3dhax.h b/include/g3dhax.h
index f2cdd29..d4aa9a0 100644
--- a/include/g3dhax.h
+++ b/include/g3dhax.h
@@ -257,12 +257,12 @@ namespace m3d {
void *frameHeap; // should be a frame heap
mAllocator_c allocator;
+ float getCurrentFrame();
+ float setCurrentFrame(float value);
+ float getUpdateRate();
+ float setUpdateRate(float value);
private:
void setupHeap(mAllocator_c *allocator, u32 *sizeOutput);
- float _getCurrentFrame();
- float _setCurrentFrame(float value);
- float _getUpdateRate();
- float _setUpdateRate(float value);
};
class fanm_c : public banm_c {
diff --git a/include/game.h b/include/game.h
index b6b07dd..bbb7de0 100755
--- a/include/game.h
+++ b/include/game.h
@@ -2201,28 +2201,5 @@ inline u8 *getResource(const char *arcName, const char *fileName) {
inline void scaleDown(Vec* scale, float amt) { scale->x -= amt; scale->y -= amt; scale->z -= amt; }
inline void scaleUp(Vec* scale, float amt) { scale->x -= amt; scale->y -= amt; scale->z -= amt; }
-inline void setNewActivePhysicsRect(dStageActor_c* actor, Vec* scale) {
- float amtX = scale->x;
- float amtY = scale->y;
-
- ActivePhysics::Info info;
- info.xDistToCenter = 0.0;
- info.yDistToCenter = 3.0 * amtY;
- info.xDistToEdge = 4.0 * amtX;
- info.yDistToEdge = 4.0 * amtY;
-
- info.category1 = actor->aPhysics.info.category1;
- info.category2 = actor->aPhysics.info.category2;
- info.bitfield1 = actor->aPhysics.info.bitfield1;
- info.bitfield2 = actor->aPhysics.info.bitfield2;
- info.unkShort1C = actor->aPhysics.info.unkShort1C;
- info.callback = actor->aPhysics.info.callback;
-
- OSReport("Making new Physics Class and adding to the list\n");
- actor->aPhysics.removeFromList();
- actor->aPhysics.initWithStruct(actor, &info);
- actor->aPhysics.addToList();
-}
-
#endif