diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/player.cpp b/src/player.cpp index 8aa3ca6..52a8b79 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -6,29 +6,20 @@ char NearestPlayer(dStageActor_c* actor) { char nearest = -1; float current = 1000000000000000000000000000000.0; - // OSReport("FINDING NEAREST PLAYER\n"); for(char ii = 0; ii < 4; ii++) { - // OSReport("K, let's check out Player %d\n", ii); dStageActor_c* player = GetSpecificPlayerActor(ii); if(!player) { - // OSReport("Player %d is NULL\n", ii); continue; } - // OSReport("Player %d is ok\n", ii); - // OSReport("[%f,%f,%f] - [%f,%f,%f]\n", // actor->pos.x, actor->pos.y, actor->pos.z, // player->pos.x, player->pos.y, player->pos.z); float distance = VECDistance(&actor->pos, &player->pos); - // OSReport("Distance: %f [%f]\n", distance, current); if(distance < current) { current = distance; nearest = ii; - // OSReport("Nearest is now %d\n", ii); } } - // OSReport("NearestPlayer returning %d\n", nearest); if(nearest < 0) { - // OSReport("***FIX ME IMMEDIATELY***\n***NEED Z COORDINATES FOR ACTOR***\n"); } return nearest; } @@ -50,7 +41,6 @@ void setNewActivePhysicsRect(dStageActor_c* actor, Vec* scale) { 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(); @@ -70,7 +60,6 @@ void changeActivePhysicsRect(dStageActor_c* actor, float xc, float yc, float xe, 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(); |