Skip to content

Commit

Permalink
ADDED: More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tnielsen committed Apr 8, 2010
1 parent e5d0586 commit 6b3cd9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/world/moving.cc
Expand Up @@ -129,7 +129,7 @@ bool moving::collide_with_objects (collision *collisionData)
min.y() + placeable::width() + (Velocity.y () > 0 ? static_cast<s_int32>(ceil (Velocity.y())) : 0),
min.z() + placeable::height() + (Velocity.z () > 0 ? static_cast<s_int32>(ceil (Velocity.z())) : 0));

VLOG(1) << " area " << min << " - " << max;
VLOG(3) << " area " << min << " - " << max;

// get all objects in our path
const std::list<chunk_info*> & objects = Mymap.objects_in_bbox (min, max);
Expand All @@ -145,7 +145,7 @@ bool moving::collide_with_objects (collision *collisionData)
// get the model's current shape, ...
const placeable_shape * shape = (*model)->current_shape ();

VLOG(1) << " shape " << (*i)->center_min() + shape->get_min() << " - " << (*i)->center_min() + shape->get_max();
VLOG(3) << " shape " << (*i)->center_min() + shape->get_min() << " - " << (*i)->center_min() + shape->get_max();

// ... and check if collision occurs
shape->collide (collisionData, (*i)->center_min());
Expand Down
3 changes: 3 additions & 0 deletions src/world/shadow.cc
Expand Up @@ -30,6 +30,7 @@
#include "gfx/surface_cacher.h"
#include "world/shadow.h"
#include "world/chunk_info.h"
#include "base/logging.h"

using gfx::drawing_area;
using world::shadow;
Expand Down Expand Up @@ -70,6 +71,8 @@ void shadow::reset ()
// cast shadow on a "floor" object
void shadow::cast_on (chunk_info* ci)
{
VLOG(1) << Remaining.size() << " " << ci << " " << ci->Min << "-" << ci->Max;

// are there parts of the shadow remaining at all?
if (Remaining.size() > 0)
{
Expand Down

0 comments on commit 6b3cd9e

Please sign in to comment.