Changeset - r9536:a3ff369f1279
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-06-17 02:25:45
belugas@openttd.org
(svn r13540) -Codechange: Less a magic number and a more adaptable code
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -1099,8 +1099,7 @@ public:
 
		}
 
		uint extra_spacing_at[] = { 3, 4, 7, 8, 10, 16, 0 };
 

	
 
		/* Yes, it defines about 27 widgets for this toolbar */
 
		for (uint i = 0, x = 0, j = 0, b = 0; i < 27; i++) {
 
		for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) {
 
			switch (i) {
 
				case 4:
 
					this->widget[i].left = x;
0 comments (0 inline, 0 general)