mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 15:44:24 +00:00
8fcf93d65a
functions added to the exit chain with atterm so that they can be called in a deterministic order and not whatever order the linker decides to put them in. - Fixed: DCajunMaster did not free its getspawned. - Fixed: P_FreeLevelData() did not free ACS scripts. - Fixed: Level snapshots were not freed at exit. - Fixed: The save/load menu list was not freed at exit. - Fixed: FCompressedMemFile needs a destructor to free the m_ImplodedBuffer. - Fixed: G_DoLoadGame() did not free the engine string. - Fixed: M_ReadSaveStrings() did not free the engine string. - Fixed: Processing DEM_SAVEGAME did not free the pathname string. - Added a check for truncated flats to FFlatTexture::MakeTexture() because Heretic's F_SKY1 is only four bytes long. - Added a dump of the offending state to the "Cannot find state..." diagnostic. - Fixed: FCompressedFile did not initialize m_Mode in its default constructor. - Fixed: Heretic and Hexen status bars did not initialize ArtiRefresh. - Fixed: PNGHandle destructor should use delete[] to free TextChunks. SVN r111 (trunk)
24 lines
481 B
C++
24 lines
481 B
C++
#ifndef A_KEYS_H
|
|
#define A_KEYS_H
|
|
|
|
#include "a_pickups.h"
|
|
|
|
class AKey : public AInventory
|
|
{
|
|
DECLARE_STATELESS_ACTOR (AKey, AInventory)
|
|
public:
|
|
virtual bool HandlePickup (AInventory *item);
|
|
|
|
BYTE KeyNumber;
|
|
|
|
protected:
|
|
virtual bool ShouldStay ();
|
|
};
|
|
|
|
bool P_CheckKeys (AActor *owner, int keynum, bool remote);
|
|
void P_InitKeyMessages ();
|
|
void P_DeinitKeyMessages ();
|
|
int P_GetMapColorForLock (int lock);
|
|
int P_GetMapColorForKey (AInventory *key);
|
|
|
|
#endif
|