equal
deleted
inserted
replaced
23 #include "strings_func.h" |
23 #include "strings_func.h" |
24 #include "map_func.h" |
24 #include "map_func.h" |
25 #include "player_func.h" |
25 #include "player_func.h" |
26 #include "settings_type.h" |
26 #include "settings_type.h" |
27 #include "tilehighlight_func.h" |
27 #include "tilehighlight_func.h" |
|
28 #include "string_func.h" |
28 |
29 |
29 #include "table/strings.h" |
30 #include "table/strings.h" |
30 #include "table/sprites.h" |
31 #include "table/sprites.h" |
31 |
32 |
32 bool _ignore_restrictions; |
33 bool _ignore_restrictions; |
590 WP(w, indview_d).clicked_button = 0; |
591 WP(w, indview_d).clicked_button = 0; |
591 w->SetDirty(); |
592 w->SetDirty(); |
592 break; |
593 break; |
593 |
594 |
594 case WE_ON_EDIT_TEXT: |
595 case WE_ON_EDIT_TEXT: |
595 if (e->we.edittext.str[0] != '\0') { |
596 if (!StrEmpty(e->we.edittext.str)) { |
596 Industry* i = GetIndustry(w->window_number); |
597 Industry* i = GetIndustry(w->window_number); |
597 int line = WP(w, indview_d).editbox_line; |
598 int line = WP(w, indview_d).editbox_line; |
598 |
599 |
599 i->production_rate[line] = ClampU(atoi(e->we.edittext.str), 0, 255); |
600 i->production_rate[line] = ClampU(atoi(e->we.edittext.str), 0, 255); |
600 UpdateIndustryProduction(i); |
601 UpdateIndustryProduction(i); |