Character Browser GoD Sewer Flag Error in 2.22
Reply
GoD Sewer Flag Error in 2.22
Go me for messing this up 2 years ago and it not getting caught till now..

Replace lines 314,318,322 in flags.php. they all show getflag(2, "sewers") when it should increment.
php
More +
see below

_________________
Sorvani
Last edited by sorvani on Sun Nov 17, 2013 3:49 pm; edited 1 time in total
Sun Nov 17, 2013 1:26 am
Senior Project Member
replace the entire block as such. there was a second error in the sewer four section.
php
More +
//Sewer 1
if (getflag(1, "temp_sewers") || getflag(2, "sewers")) $template->assign_block_vars( "head.flags" , array( 'FLAG' => "1", 'TEXT' => $language['FLAG_GoD_Sewer_1_1']) );
else $template->assign_block_vars( "head.flags" , array( 'FLAG' => "0", 'TEXT' => $language['FLAG_GoD_Sewer_1_1']) );
$template->assign_block_vars( "head.flags" , array( 'FLAG' => getflag(2, "sewers"), 'TEXT' => $language['FLAG_GoD_Sewer_1_2']) );
//Sewer 2
if (getflag(2, "temp_sewers") || getflag(3, "sewers")) $template->assign_block_vars( "head.flags" , array( 'FLAG' => "1", 'TEXT' => $language['FLAG_GoD_Sewer_2_1']) );
else $template->assign_block_vars( "head.flags" , array( 'FLAG' => "0", 'TEXT' => $language['FLAG_GoD_Sewer_2_1']) );
$template->assign_block_vars( "head.flags" , array( 'FLAG' => getflag(3, "sewers"), 'TEXT' => $language['FLAG_GoD_Sewer_2_2']) );
//sewer 3
if (getflag(3, "temp_sewers") || getflag(4, "sewers")) $template->assign_block_vars( "head.flags" , array( 'FLAG' => "1", 'TEXT' => $language['FLAG_GoD_Sewer_3_1']) );
else $template->assign_block_vars( "head.flags" , array( 'FLAG' => "0", 'TEXT' => $language['FLAG_GoD_Sewer_3_1']) );
$template->assign_block_vars( "head.flags" , array( 'FLAG' => getflag(4, "sewers"), 'TEXT' => $language['FLAG_GoD_Sewer_3_2']) );
//sewer 4
if (getflag(4, "temp_sewers") || getflag(5, "sewers")) $template->assign_block_vars( "head.flags" , array( 'FLAG' => "1", 'TEXT' => $language['FLAG_GoD_Sewer_4_1']) );
else $template->assign_block_vars( "head.flags" , array( 'FLAG' => "0", 'TEXT' => $language['FLAG_GoD_Sewer_4_1']) );
if (getflag(1, "god_vxed_access") && getflag(5, "sewers")) $template->assign_block_vars( "head.flags" , array( 'FLAG' => "1", 'TEXT' => $language['FLAG_GoD_Sewer_4_2']) );
else $template->assign_block_vars( "head.flags" , array( 'FLAG' => "0", 'TEXT' => $language['FLAG_GoD_Sewer_4_2']) );

_________________
Sorvani
Sun Nov 17, 2013 3:49 pm
Senior Project Member
Thanks, I'll merge this in on Saturday.
Mon Nov 18, 2013 7:39 am
Project Lead
should be fixed in 2.23, let me know if not.

Sorry I didnt get to it yesterday. Me and my son started watching the special features on the extended edition hobbit and couldn't stop. Like 10 hours of footage...
Sun Nov 24, 2013 8:22 pm
Project Lead
Character Browser GoD Sewer Flag Error in 2.22
Reply