Browse Source

[hellfire] rename inv_420FD0 to inv_diablo_to_hellfire

pull/876/head
Anders Jenbo 6 years ago
parent
commit
87361e8ecc
  1. 2
      Source/diablo.cpp
  2. 5
      Source/inv.cpp
  3. 2
      Source/inv.h
  4. 2
      comparer-config/hellfire.toml

2
Source/diablo.cpp

@ -119,7 +119,7 @@ BOOL StartGame(BOOL bNewGame, BOOL bSinglePlayer)
if (!gbValidSaveFile || !gbLoadGame) { if (!gbValidSaveFile || !gbLoadGame) {
#else #else
if (!gbValidSaveFile && gbLoadGame) if (!gbValidSaveFile && gbLoadGame)
inv_420FD0(myplr); inv_diablo_to_hellfire(myplr);
#endif #endif
uMsg = WM_DIABNEWGAME; uMsg = WM_DIABNEWGAME;
} else { } else {

5
Source/inv.cpp

@ -1664,7 +1664,10 @@ void RemoveInvItem(int pnum, int iv)
} }
#ifdef HELLFIRE #ifdef HELLFIRE
BOOL inv_420FD0(int pnum) /**
* @brief This destroyes all items except gold
*/
BOOL inv_diablo_to_hellfire(int pnum)
{ {
ItemStruct tmp; ItemStruct tmp;
ItemStruct *item; ItemStruct *item;

2
Source/inv.h

@ -21,7 +21,7 @@ void CheckInvCut(int pnum, int mx, int my);
void inv_update_rem_item(int pnum, BYTE iv); void inv_update_rem_item(int pnum, BYTE iv);
void RemoveInvItem(int pnum, int iv); void RemoveInvItem(int pnum, int iv);
#ifdef HELLFIRE #ifdef HELLFIRE
BOOL inv_420FD0(int pnum); BOOL inv_diablo_to_hellfire(int pnum);
#endif #endif
void RemoveSpdBarItem(int pnum, int iv); void RemoveSpdBarItem(int pnum, int iv);
void CheckInvItem(); void CheckInvItem();

2
comparer-config/hellfire.toml

@ -2693,7 +2693,7 @@ addr = 0x420E7F
size = 0x151 size = 0x151
[[func]] [[func]]
name = "inv_420FD0" name = "inv_diablo_to_hellfire"
addr = 0x420FD0 addr = 0x420FD0
size = 0x152 size = 0x152

Loading…
Cancel
Save