Skip to content

Commit

Permalink
fix(zq): weapon type names drop down being empty
Browse files Browse the repository at this point in the history
This broke from recent addition of reflected arrows/fire (e3b23aa)
  • Loading branch information
connorjclark committed Feb 12, 2024
1 parent 1084e5c commit 53cdacc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/base/module.cpp
Expand Up @@ -379,7 +379,7 @@ bool ZModule::init(bool d) //bool default
};
for ( int32_t q = 0; q < wRefFire2+1; q++ )
{
if(lweapon_cats[q][0] == '-')
if(lweapon_cats[q][0] != '-')
strcpy(moduledata.player_weapon_names[q],(lweapon_cats[q][0] ? zc_get_config_basic("LWEAPONS",lweapon_cats[q],lweapon_default_names[q]) : lweapon_default_names[q]));
//al_trace("LWeapon ID %d is: %s\n", q, moduledata.player_weapon_names[q]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/zc/zc_module.cpp
Expand Up @@ -321,7 +321,7 @@ bool ZModule::init(bool d) //bool default
};
for ( int32_t q = 0; q < wRefFire2+1; q++ )
{
if(lweapon_cats[q][0] == '-')
if(lweapon_cats[q][0] != '-')
strcpy(moduledata.player_weapon_names[q],zc_get_config_basic("LWEAPONS",lweapon_cats[q],lweapon_default_names[q]));
//al_trace("LWeapon ID %d is: %s\n", q, moduledata.player_weapon_names[q]);
//al_trace("LWEAPONS %d is: %s\n", q, moduledata.player_weapon_names[q]);
Expand Down
2 changes: 1 addition & 1 deletion src/zinfo.h
Expand Up @@ -78,7 +78,7 @@ struct zcmodule
char guy_type_names[gDUMMY1][255];
char enemy_weapon_names[wMax-wEnemyWeapons][255];
char enemy_scriptweaponweapon_names[10][255];
char player_weapon_names[wIce+1][255];
char player_weapon_names[wRefFire2+1][255];

char base_NSF_file[1024];
char copyright_strings[3][2048];
Expand Down

0 comments on commit 53cdacc

Please sign in to comment.