diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-29 17:54:20 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-29 17:54:20 +0000 |
commit | 85746775a8ffbb68414b5f0bf7ef119530ad9dfe (patch) | |
tree | ab9f0712ef9111b43f800e03f95dac94c65cc47d | |
parent | 7e407086954ee6cc4c1188cae1bbaa2bae34a7e3 (diff) |
Prefix debug messages
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@118 84d2e878-0bd5-11dd-ad15-13eda11d74c5
-rw-r--r-- | src/physics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/physics.c b/src/physics.c index efa44dd..ba45f61 100644 --- a/src/physics.c +++ b/src/physics.c @@ -173,7 +173,7 @@ static int physics_check_collide_all_faces(ModelInstance *obj, ModelInstance *ot if ( physics_will_collide_face(sx, sy, sz, vx, vy, vz, nx, ny, nz, face, 4, dt, other, &ttc) != 0 ) { if ( ttc < *ttc_lowest ) { - printf("collides with %s/%p in %5.2f ms\n", other->model->name, other, ttc); + printf("PH: collides with %s/%p in %5.2f ms\n", other->model->name, other, ttc); *ttc_lowest = ttc; *nxc = nx; *nyc = ny; @@ -235,7 +235,7 @@ static int physics_check_collide(ModelInstance *obj, ModelInstance *other, Uint3 if ( ttc_lowest == +INFINITY ) return 0; if ( ttc_lowest > dt ) { - printf("will collide with %s/%8p, but too far in the future at %5.2f ms\n", other->model->name, other, ttc_lowest); + printf("PH: will collide with %s/%8p, but too far in the future at %5.2f ms\n", other->model->name, other, ttc_lowest); return 0; } @@ -245,13 +245,13 @@ static int physics_check_collide(ModelInstance *obj, ModelInstance *other, Uint3 obj->z += obj->vz * ttc_lowest; obj->vz = 0.0; obj->landed = 1; - printf("Landed!\n"); + printf("PH: Landed!\n"); } else { obj->vx = -obj->vx; obj->vy = -obj->vy; obj->vz = -obj->vz; obj->yawspeed = 0.0; - printf("Bounce!\n"); + printf("PH: Bounce!\n"); } return 1; |