News for hackers. Stuff that matters.
Re:Aztec monks with 1/55 HP no longer die when picking up or... by gabereiser on Saturday April 15, 2023 @12:59PM (#35582367)

  bool is_alive(unit *Entity) {
    return unit->hp > ZERO_FLOAT;
  }
Super easy…

Likewise I’m with you, the more I code, the more I see these kinds of things as bad design choices. If you’re going to deal with a type, keep it that type. If you’re going to convert, you need to take care of edge cases like OP. And don’t just add 0.0001f; that’s an exploit waiting to happen by someone with a macro to pickup/drop relics.

There are no comments on this comment yet.