From 8a18b771dd86a953a45825f18e45346bead31108 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 15 Sep 2019 19:38:11 +0200 Subject: [PATCH] [hellfire] SpawnUnique bin exact --- Source/items.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/items.cpp b/Source/items.cpp index 702a20ed7..9f44aec7b 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2172,6 +2172,9 @@ void SpawnUnique(int uid, int x, int y) { int ii, itype; +#ifdef HELLFIRE + int curlv = items_get_currlevel(); +#endif if (numitems >= MAXITEMS) return; @@ -2185,7 +2188,11 @@ void SpawnUnique(int uid, int x, int y) itype++; } +#ifdef HELLFIRE + GetItemAttrs(ii, itype, curlv); +#else GetItemAttrs(ii, itype, currlevel); +#endif GetUniqueItem(ii, uid); SetupItem(ii); numitems++;