Get rid of ERROR_INT and use 0 for "no surface"

This commit is contained in:
Paul Romano 2019-03-14 14:47:42 -05:00
parent 492d984525
commit 0fbe024e11
3 changed files with 4 additions and 6 deletions

View file

@ -191,7 +191,7 @@ extern "C" void print_particle(Particle* p)
}
// Display miscellaneous info.
if (p->surface_ != ERROR_INT) {
if (p->surface_ != 0) {
const Surface& surf {*model::surfaces[std::abs(p->surface_)-1]};
std::cout << " Surface = " << std::copysign(surf.id_, p->surface_) << "\n";
}