summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-26 12:08:56 +0000
committertruelight <truelight@openttd.org>2005-03-26 12:08:56 +0000
commitcef2e24ec4178a4ed84accf719cccb31a54978bf (patch)
treec02853561c776855635c274782cb7509c941216b
parentf89984642e98786bfb7daf6e7b787ec55251579a (diff)
downloadopenttd-cef2e24ec4178a4ed84accf719cccb31a54978bf.tar.xz
(svn r2075) -Fix: added missing breaks in switches
-Fix: added const for a const variable
-rw-r--r--clear_cmd.c2
-rw-r--r--main_gui.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index 703c5d16d..fa3c4772d 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -549,7 +549,7 @@ void TileLoopClearHelper(TileIndex tile)
{
byte img_1;
byte img_2;
- static byte img_by_map5[] = { 0, 0, 0, 2, 1, 1, 0, 0 };
+ static const byte img_by_map5[] = { 0, 0, 0, 2, 1, 1, 0, 0 };
TileIndex dirty = INVALID_TILE;
switch (GetTileType(tile)) {
diff --git a/main_gui.c b/main_gui.c
index 22f0afd15..bac3509f7 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1105,6 +1105,7 @@ static void AskResetLandscapeWndProc(Window *w, WindowEvent *e)
case WE_PAINT:
DrawWindowWidgets(w);
DrawStringMultiCenter(90, 38, mode?STR_022D_ARE_YOU_SURE_YOU_WANT_TO:STR_GENERATE_RANDOM_LANDSCAPE , 168);
+ break;
case WE_CLICK:
switch(e->click.widget) {
case 3:
@@ -1125,6 +1126,7 @@ static void AskResetLandscapeWndProc(Window *w, WindowEvent *e)
break;
}
+ break;
}
}