(svn r2075) -Fix: added missing breaks in switches
authortruelight
Sat, 26 Mar 2005 12:08:56 +0000
changeset 1571 9afc220894dd
parent 1570 c9b6cf44ce53
child 1572 cf4613ca991e
(svn r2075) -Fix: added missing breaks in switches
-Fix: added const for a const variable
clear_cmd.c
main_gui.c
--- a/clear_cmd.c	Sat Mar 26 04:16:39 2005 +0000
+++ b/clear_cmd.c	Sat Mar 26 12:08:56 2005 +0000
@@ -549,7 +549,7 @@
 {
 	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)) {
--- a/main_gui.c	Sat Mar 26 04:16:39 2005 +0000
+++ b/main_gui.c	Sat Mar 26 12:08:56 2005 +0000
@@ -1105,6 +1105,7 @@
 	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 @@
 
 			break;
 		}
+		break;
 	}
 }