From ce586b183c93a277b050f81f1f0e216eae29fefd Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 15 Sep 2019 19:15:19 +0200 Subject: [PATCH] [hellfire] SpawnRock bin exact --- Source/items.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/items.cpp b/Source/items.cpp index e69020502..70feda585 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2565,6 +2565,9 @@ void SpawnRock() ii = objectactive[i]; ostand = object[ii]._otype == OBJ_STAND; } +#ifdef HELLFIRE + int curlv = items_get_currlevel(); +#endif if (ostand) { i = itemavail[0]; itemavail[0] = itemavail[127 - numitems - 1]; @@ -2574,7 +2577,11 @@ void SpawnRock() item[i]._ix = xx; item[i]._iy = yy; dItem[xx][item[i]._iy] = i + 1; +#ifdef HELLFIRE + GetItemAttrs(i, IDI_ROCK, curlv); +#else GetItemAttrs(i, IDI_ROCK, currlevel); +#endif SetupItem(i); item[i]._iSelFlag = 2; item[i]._iPostDraw = TRUE;