Skip to content

Commit 8b9ac5f

Browse files
authored
Merge pull request #4391 from Goober5000/fix_tech_db_default_flags
fix use of default tech database flags
2 parents 7cf2832 + 67b3c6c commit 8b9ac5f

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

code/menuui/techmenu.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ void techroom_change_tab(int num)
760760
switch (Tab) {
761761
case SHIPS_DATA_TAB:
762762
si_mask.set(multi ? Ship::Info_Flags::In_tech_database_m : Ship::Info_Flags::In_tech_database);
763-
si_mask.set(multi ? Ship::Info_Flags::Default_in_tech_database_m : Ship::Info_Flags::Default_in_tech_database);
764763

765764
// load ship info if necessary
766765
if ( !Ships_loaded ) {
@@ -809,7 +808,6 @@ void techroom_change_tab(int num)
809808
Weapon_list.reserve(Weapon_info.size());
810809

811810
wi_mask.set(multi ? Weapon::Info_Flags::Player_allowed : Weapon::Info_Flags::In_tech_database);
812-
wi_mask.set(Weapon::Info_Flags::Default_in_tech_database);
813811

814812
int i = 0;
815813
tech_list_entry temp_entry;

code/menuui/techmenu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ typedef struct {
2525
// flags by Goober5000
2626
#define IIF_DEFAULT_VALUE 0
2727
#define IIF_IN_TECH_DATABASE (1 << 0) // in tech database? - Goober5000
28-
#define IIF_DEFAULT_IN_TECH_DATABASE (1 << 1) // in tech database by default? - Goober5000
28+
#define IIF_DEFAULT_IN_TECH_DATABASE (1 << 1) // this entry's default tech database status, as specified in species.tbl; used when the tech db is "reset to default" - Goober5000
2929

3030
extern int Techroom_overlay_id;
3131

code/ship/ship_flags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ namespace Ship {
182182
Awacs, // ditto
183183
Knossos_device, // this is the knossos device
184184
No_fred, // not available in fred
185-
Default_in_tech_database, // default in tech database - Goober5000
186-
Default_in_tech_database_m, // ditto - Goober5000
185+
Default_in_tech_database, // this entry's default tech database status, as specified in ships.tbl; used when the tech db is "reset to default" - Goober5000
186+
Default_in_tech_database_m, // ditto for multiplayer - Goober5000
187187
Flash, // makes a flash when it explodes
188188
Show_ship_model, // Show ship model even in first person view
189189
Surface_shields, // _argv[-1], 16 Jan 2005: Enable surface shields for this ship.

code/weapon/weapon_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace Weapon {
4040
Lockarm, // if the missile was fired without a lock, it does significanlty less damage on impact
4141
Ballistic, // ballistic primaries - Goober5000
4242
Pierce_shields, // shield pierceing -Bobboau
43-
Default_in_tech_database, // default in tech database - Goober5000
43+
Default_in_tech_database, // this entry's default tech database status, as specified in weapons.tbl; used when the tech db is "reset to default" - Goober5000
4444
Local_ssm, // localized ssm. ship that fires ssm is in mission. ssms also warp back in during mission
4545
Tagged_only, // can only fire if target is tagged
4646
Cycle, // will only fire from (shots (defalts to 1)) points at a time

0 commit comments

Comments
 (0)