#endif
#ifdef SVQC
-#include <server/defs.qh>
#include <server/items.qh>
#endif
{ \
if (!Item_IsDefinitionAllowed(item)) \
{ \
- /*startitem_failed = true;*/ \
+ startitem_failed = true; \
delete(this); \
return; \
} \
enum
{
- RANDOM_ITEM_TYPE_HEALTH = BIT(1),
- RANDOM_ITEM_TYPE_ARMOR = BIT(2),
- RANDOM_ITEM_TYPE_RESOURCE = BIT(3),
- RANDOM_ITEM_TYPE_WEAPON = BIT(4),
- RANDOM_ITEM_TYPE_POWERUP = BIT(5),
- RANDOM_ITEM_TYPE_ALL = BITS(6)
+ RANDOM_ITEM_TYPE_HEALTH = BIT(0),
+ RANDOM_ITEM_TYPE_ARMOR = BIT(1),
+ RANDOM_ITEM_TYPE_RESOURCE = BIT(2),
+ RANDOM_ITEM_TYPE_WEAPON = BIT(3),
+ RANDOM_ITEM_TYPE_POWERUP = BIT(4),
+ RANDOM_ITEM_TYPE_ALL = BITS(5)
};
/// \brief Returns a random classname of the item.
/// \brief Header file that describes the functions related to game items.
/// \copyright GNU GPLv2 or any later version.
+bool startitem_failed;
+
/// \brief Returns the item definition corresponding to the given class name.
/// \param[in] class_name Class name to search for.
/// \return Item definition corresponding to the given class name or NULL is not