fix an error in my previous commit 2008-07-05T16:43:25Z!alinkmaze@gmail.com
(all hyperlinks was deactivated for normal users)
This commit is contained in:
parent
6bfcc04af5
commit
e37bdf6445
1 changed files with 5 additions and 7 deletions
12
src/help.cpp
12
src/help.cpp
|
@ -2088,12 +2088,8 @@ void help_text_area::handle_ref_cfg(const config &cfg)
|
|||
}
|
||||
|
||||
if (find_topic(toplevel_, dst) == NULL && !force) {
|
||||
if (game_config::debug)
|
||||
add_text_item(text, dst, true);
|
||||
else
|
||||
// quietly silence the hyperlink for normal user
|
||||
add_text_item(text);
|
||||
|
||||
// detect the broken link but quietly silence the hyperlink for normal user
|
||||
add_text_item(text, game_config::debug ? dst : "", true);
|
||||
|
||||
// FIXME: workaround: if different campaigns define different
|
||||
// terrains, some terrains available in one campaign will
|
||||
|
@ -2116,7 +2112,9 @@ void help_text_area::handle_ref_cfg(const config &cfg)
|
|||
throw parse_error(msg.str());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
add_text_item(text, dst);
|
||||
}
|
||||
}
|
||||
|
||||
void help_text_area::handle_img_cfg(const config &cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue