. . . "break; } I just realized how rusty my c++ is, might have to start using it again, and if your are a game developer, this one is public domain." .