Compare commits

..

No commits in common. "main" and "1.0.0" have entirely different histories.
main ... 1.0.0

View File

@ -21,11 +21,6 @@ void InGameState::spawnItem(Type type) {
item.x = rand() % WINDOW_WIDTH;
item.y = rand() % WINDOW_HEIGHT;
if (item.x < 24) item.x += 24;
if (item.x > WINDOW_WIDTH - 24) item.x -= 24;
if (item.y < 24) item.y += 24;
if (item.y > WINDOW_HEIGHT - 24) item.y -= 24;
for (const Item i : items) {
if (i.type == type) return;
}