So we all get them from time to time. But how long have you previously spent trying to spot such a simple cause of an error?
Pretty recently I was setting up the boundaries of the camera in a game. This was my algorithm.
if(camera.position.x + Gdx.app.getGraphics().getWidth() => map.getWidth()) {
moveX = map.getWidth() - camera.position.x + Gdx.app.getGraphics().getWidth();
}
I spent 5 hours debugging it, wondering why it moved the camera 2048px. This error has to be such a classic.
But yeah, you have to love the rush from fixing them.