// // haleyjd 07/25/03: temporary hack to resolve weapon states // until EDF weapon support is in place // void D_InitWeaponInfo() { // haleyjd 11/28/08: SSG enable if(GameModeInfo->type == Game_DOOM && W_CheckNumForNameNS("SHT2A0", lumpinfo_t::ns_sprites) > 0) enable_ssg = true; }
int R_ColormapNumForName(const char *name) { int i = 0; // special cases if(!strncasecmp(name, "COLORMAP", 8)) return 0; if(r_numglobalmaps > 1 && !strncasecmp(name, "FOGMAP", 8)) return 1; if((i = W_CheckNumForNameNS(name, lumpinfo_t::ns_colormaps)) != -1) i = (i - firstcolormaplump) + r_numglobalmaps; return i; }
// // haleyjd 07/25/03: temporary hack to resolve weapon states // until EDF weapon support is in place // WEAPON_FIXME // void D_InitWeaponInfo(void) { int i; for(i = 0; i < NUMWEAPONS; ++i) { weaponinfo[i].atkstate = E_SafeState(weaponinfo[i].atkstate); weaponinfo[i].downstate = E_SafeState(weaponinfo[i].downstate); weaponinfo[i].flashstate = E_SafeState(weaponinfo[i].flashstate); weaponinfo[i].readystate = E_SafeState(weaponinfo[i].readystate); weaponinfo[i].upstate = E_SafeState(weaponinfo[i].upstate); } // haleyjd 11/28/08: SSG enable if(GameModeInfo->type == Game_DOOM && W_CheckNumForNameNS("SHT2A0", lumpinfo_t::ns_sprites) > 0) enable_ssg = true; }