#include <iostream>
#include "collision_grid.hpp"
-#include "msg.hpp"
+#include "log.hpp"
#include "collision.hpp"
#include "sector.hpp"
#include "collision_grid_iterator.hpp"
int gridy = int(y / cell_height);
if(gridx < 0 || gridy < 0
|| gridx >= int(cells_x) || gridy >= int(cells_y)) {
- msg_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
+ log_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
continue;
}
GridEntry* entry = new GridEntry;
assert(wrapper != 0);
#else
if(wrapper == 0) {
- msg_warning << "Tried to remove nonexistant object" << std::endl;
+ log_warning << "Tried to remove nonexistant object" << std::endl;
return;
}
#endif
int gridy = int(y / cell_height);
if(gridx < 0 || gridy < 0
|| gridx >= int(cells_x) || gridy >= int(cells_y)) {
- msg_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
+ log_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
continue;
}
remove_object_from_gridcell(gridy*cells_x + gridx, wrapper);
int gridy = int(y / cell_height);
if(gridx < 0 || gridy < 0 ||
gridx >= int(cells_x) || gridy >= int(cells_y)) {
- msg_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
+ log_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
continue;
}
remove_object_from_gridcell(gridy*cells_x + gridx, wrapper);
int gridy = int(y / cell_height);
if(gridx < 0 || gridy < 0
|| gridx >= int(cells_x) || gridy >= int(cells_y)) {
- msg_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
+ log_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
continue;
}
int gridy = int(y / cell_height);
if(gridx < 0 || gridy < 0
|| gridx >= int(cells_x) || gridy >= int(cells_y)) {
- //msg_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
+ //log_warning << "Object out of range: " << gridx << ", " << gridy << std::endl;
continue;
}
entry = entry->next;
};
- msg_warning << "Couldn't find object in cell" << std::endl;
+ log_warning << "Couldn't find object in cell" << std::endl;
}