Renamed strings and removed warnings

This commit is contained in:
Robert Jordan 2015-06-05 18:59:07 -04:00
parent c9c3e66289
commit 6179888231
2 changed files with 5 additions and 5 deletions

View File

@ -3605,6 +3605,6 @@ STR_5268 :{SMALLFONT}{BLACK}Audio
STR_5269 :{SMALLFONT}{BLACK}Controls
STR_5270 :{SMALLFONT}{BLACK}Miscellaneous
STR_5271 :{SMALLFONT}{BLACK}Twitch
STR_5272 :Find Objects
STR_5273 :Enter the name of an object to look for
STR_5272 :Search for Objects
STR_5273 :Enter the name of an object to search for
STR_5274 :Clear

View File

@ -356,7 +356,7 @@ static void window_editor_object_selection_mouseup()
window_loadsave_open(LOADSAVETYPE_LOAD | LOADSAVETYPE_TRACK);
break;
case WIDX_FILTER_STRING_BUTTON:
window_text_input_open(w, widgetIndex, 5272, 5273, 1170, _filter_string, 40);
window_text_input_open(w, widgetIndex, 5272, 5273, 1170, (uint32)_filter_string, 40);
break;
case WIDX_FILTER_CLEAR_BUTTON:
memset(_filter_string, 0, sizeof(_filter_string));
@ -1067,9 +1067,9 @@ static bool filter_string(rct_object_entry *entry)
strcpy(name_lower, name);
strcpy(filter_lower, _filter_string);
for (int i = 0; i < strlen(name_lower); i++)
for (int i = 0; i < (int)strlen(name_lower); i++)
name_lower[i] = (char)tolower(name_lower[i]);
for (int i = 0; i < strlen(filter_lower); i++)
for (int i = 0; i < (int)strlen(filter_lower); i++)
filter_lower[i] = (char)tolower(filter_lower[i]);
return strstr(name_lower, filter_lower) != NULL;