Skip to content

Commit

Permalink
Warn when uplink and/or lassat is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyp committed Aug 5, 2012
1 parent 26bb105 commit 1e5fafa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions data/base/images/frontend.img
Expand Up @@ -198,6 +198,8 @@
0,0,image_no_vtol.png
0,0,image_no_cyborg.png
0,0,image_no_tank.png
0,0,image_no_uplink.png
0,0,image_no_lassat.png
0,0,image_easy.png
0,0,image_medium.png
0,0,image_hard.png
Expand Down
2 changes: 2 additions & 0 deletions src/frend.h
Expand Up @@ -205,6 +205,8 @@ enum
IMAGE_NO_VTOL,
IMAGE_NO_CYBORG,
IMAGE_NO_TANK,
IMAGE_NO_UPLINK,
IMAGE_NO_LASSAT,
IMAGE_EASY,
IMAGE_MEDIUM,
IMAGE_HARD,
Expand Down
6 changes: 4 additions & 2 deletions src/multiint.cpp
Expand Up @@ -1395,7 +1395,9 @@ static const LimitIcon limitIcons[] =
{
{"A0LightFactory", N_("Tanks disabled!!"), IMAGE_NO_TANK},
{"A0CyborgFactory", N_("Cyborgs disabled."), IMAGE_NO_CYBORG},
{"A0VTolFactory1", N_("VTOLs disabled."), IMAGE_NO_VTOL}
{"A0VTolFactory1", N_("VTOLs disabled."), IMAGE_NO_VTOL},
{"A0Sat-linkCentre", N_("Satellite Uplink disabled."), IMAGE_NO_UPLINK},
{"A0LasSatCommand", N_("Laser Satellite disabled."), IMAGE_NO_LASSAT},
};

void updateLimitFlags()
Expand Down Expand Up @@ -1667,7 +1669,7 @@ static void addGameOptions()
{
if (!skip)
{ // only add this once.
addBlueForm(MULTIOP_OPTIONS, MULTIOP_NO_SOMETHING, "", MULTIOP_HOSTX, MULTIOP_NO_SOMETHINGY, 41, 90 );
addBlueForm(MULTIOP_OPTIONS, MULTIOP_NO_SOMETHING, "", MULTIOP_HOSTX, MULTIOP_NO_SOMETHINGY, 41, 152);
}

addMultiBut(psWScreen, MULTIOP_NO_SOMETHING, MULTIOP_NO_SOMETHINGY + i, MULTIOP_NO_SOMETHINGX, y,
Expand Down

0 comments on commit 1e5fafa

Please sign in to comment.