diff options
author | Treeki <treeki@gmail.com> | 2012-03-15 02:54:33 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-03-15 02:54:33 +0100 |
commit | e88fd1dcef52d4375fef655918886fc14bb1f40c (patch) | |
tree | f081b14a420331258665a58ad31be54b13b1c655 /src/koopatlas/map.cpp | |
parent | 18a6c3dbe01f484b346923ebc53f674c1e4a5101 (diff) | |
download | kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.tar.gz kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.zip |
optimisations to reduce code size
Diffstat (limited to 'src/koopatlas/map.cpp')
-rw-r--r-- | src/koopatlas/map.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp index 4600556..258cf7c 100644 --- a/src/koopatlas/map.cpp +++ b/src/koopatlas/map.cpp @@ -6,19 +6,16 @@ //#define DOODAD_DEBUGGING #ifdef TILE_DEBUGGING -#define TileReport OSReport #else inline void TileReport(const char *str, ...) { } #endif #ifdef BOUND_DEBUGGING -#define BoundReport OSReport #else inline void BoundReport(const char *str, ...) { } #endif #ifdef DOODAD_DEBUGGING -#define DoodadReport OSReport #else inline void DoodadReport(const char *str, ...) { } #endif @@ -26,12 +23,10 @@ inline void DoodadReport(const char *str, ...) { } dWMMap_c *dWMMap_c::instance = 0; dWMMap_c *dWMMap_c::build() { - OSReport("Creating WM_Map\n"); void *buffer = AllocFromGameHeap1(sizeof(dWMMap_c)); dWMMap_c *c = new(buffer) dWMMap_c; - OSReport("Created WM_Map @ %p\n", c); instance = c; return c; @@ -45,12 +40,9 @@ dWMMap_c::dWMMap_c() { int dWMMap_c::onCreate() { renderer.allocator.setup(GameHeaps[0], 0x20); - OSReport("Setting up Renderer\n"); bool result = renderer.setup(&renderer.allocator); if (result) - OSReport("Set up Renderer\n"); else - OSReport(":(\n"); bgMatrix.translation(1140.0f, -2910.0f, -500.0f); s16 rot = 0x4000; @@ -135,10 +127,6 @@ void dWMMap_c::renderer_c::beginRendering() { nw4r::g3d::Camera cam3d(GetCameraByID(0)); cam3d.GetCameraMtx(&renderMtx); MTXTransApply(renderMtx, renderMtx, 0, 0, baseZ); - /*OSReport("MTX:\n"); - OSReport("%f, %f, %f, %f:\n", renderMtx[0][0], renderMtx[0][1], renderMtx[0][2], renderMtx[0][3]); - OSReport("%f, %f, %f, %f:\n", renderMtx[1][0], renderMtx[1][1], renderMtx[1][2], renderMtx[1][3]); - OSReport("%f, %f, %f, %f:\n", renderMtx[2][0], renderMtx[2][1], renderMtx[2][2], renderMtx[2][3]);//*/ GXSetCurrentMtx(GX_PNMTX0); |