{
const int bits = ReadInt24_t();
ITEMS_FOREACH(bits & BIT(i), LAMBDA({
- int prev = data.inv_items[i];
- int next = data.inv_items[i] = ReadByte();
+ .int fld = inv_items[i];
+ int prev = data.(fld);
+ int next = data.(fld) = ReadByte();
dprintf("%s: %.0f -> %.0f\n", ITEMS[i].m_name, prev, next);
}));
}
{
int bits = 0;
ITEMS_FOREACH(true, LAMBDA({
- .int idx = inv_items[i];
- bits = BITSET(bits, BIT(i), data.inventory.(idx) != (data.inventory.(idx) = data.(idx)));
+ .int fld = inv_items[i];
+ bits = BITSET(bits, BIT(i), data.inventory.(fld) != (data.inventory.(fld) = data.(fld)));
}));
WriteInt24_t(MSG_ENTITY, bits);
ITEMS_FOREACH(bits & BIT(i), LAMBDA({
REGISTER_ITEM(VaporizerCells, Pickup, MAP(IDENTITY
,IF(ALL, CONFIGURE
, model = "models/items/a_cells.md3"
- , sound = "misc/itempickup.wav"
+ , sound = "misc/itempickup.wav"
, name = "Vaporizer Ammo"
)
,IF(SV, CONFIGURE
, botvalue = 100
, itemid = IT_CELLS
- , respawntime = GET(instagib_respawntime_ammo)
+ , respawntime = GET(instagib_respawntime_ammo)
, respawntimejitter = GET(instagib_respawntimejitter_ammo)
)
))
REGISTER_ITEM(ExtraLife, Pickup, MAP(IDENTITY
,IF(ALL, CONFIGURE
, model = "models/items/g_h100.md3"
- , sound = "misc/megahealth.wav"
+ , sound = "misc/megahealth.wav"
, name = "Extralife"
)
,IF(SV, CONFIGURE
, botvalue = BOT_PICKUP_RATING_HIGH
- , itemflags = FL_POWERUP
+ , itemflags = FL_POWERUP
, itemid = IT_NAILS
- , respawntime = GET(g_pickup_respawntime_powerup)
+ , respawntime = GET(g_pickup_respawntime_powerup)
, respawntimejitter = GET(g_pickup_respawntimejitter_powerup)
)
))