From 9254e760c4a0c19e6ed6957d8e60fb7d6fdfd59c Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Tue, 2 Apr 2019 21:17:36 +0900 Subject: [PATCH] Revert "Update Source/items.cpp" This reverts commit f966a5ca5b776a858c93adf61729801b43d0e42e. --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index 66b8ff560..b1fadc9a9 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -679,7 +679,7 @@ void __cdecl AddInitItems() itemactive[numitems] = i; x = random(12, 80) + 16; y = random(12, 80) + 16; - while (!ItemPlace(x, y)) { + for (k = ItemPlace(x, y); !k; k = ItemPlace(x, y)) { x = random(12, 80) + 16; y = random(12, 80) + 16; }