Browse Source

Remove declaration of private/anonymous function

Never used outside objects.cpp so it was rightly moved into the anonymous namespace, but the header was not updated at the time.
pull/3327/head
ephphatha 4 years ago committed by Anders Jenbo
parent
commit
e98b80c992
  1. 11
      Source/objects.cpp
  2. 12
      Source/objects.h

11
Source/objects.cpp

@ -3997,6 +3997,17 @@ void OperateWeaponRack(int pnum, int i, bool sendmsg)
NetSendCmdParam1(false, CMD_OPERATEOBJ, i);
}
/**
* @brief Checks whether the player is activating Na-Krul's spell tomes in the correct order
*
* Used as part of the final Diablo: Hellfire quest (from the hints provided to the player in the
* reconstructed note). This function both updates the state of the variable that tracks progress
* and also determines whether the spawn conditions are met (i.e. all tomes have been triggered
* in the correct order).
*
* @param s the id of the spell tome
* @return true if the player has activated all three tomes in the correct order, false otherwise
*/
bool OperateNakrulBook(int s)
{
switch (s) {

12
Source/objects.h

@ -168,18 +168,6 @@ void GetObjectStr(int i);
void OperateNakrulLever();
void SyncNakrulRoom();
void AddNakrulLeaver();
/**
* @brief Checks whether the player is activating Na-Krul's spell tomes in the correct order
*
* Used as part of the final Diablo: Hellfire quest (from the hints provided to the player in the
* reconstructed note). This function both updates the state of the variable that tracks progress
* and also determines whether the spawn conditions are met (i.e. all tomes have been triggered
* in the correct order).
*
* @param s the id of the spell tome
* @return true if the player has activated all three tomes in the correct order, false otherwise
*/
bool OperateNakrulBook(int s);
bool objectIsDisabled(int i);
} // namespace devilution

Loading…
Cancel
Save