Skip to content

Commit

Permalink
[hellfire] SpawnRock bin exact
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored and AJenbo committed Sep 15, 2019
1 parent d720e45 commit ce586b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
Expand Down

0 comments on commit ce586b1

Please sign in to comment.