(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.

This commit is contained in:
rubidium
2008-05-10 08:58:52 +00:00
parent e099831210
commit f23026cce8
12 changed files with 32 additions and 21 deletions

View File

@@ -25,6 +25,7 @@
#include "player_func.h"
#include "settings_type.h"
#include "tilehighlight_func.h"
#include "string_func.h"
#include "table/strings.h"
#include "table/sprites.h"
@@ -592,7 +593,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
break;
case WE_ON_EDIT_TEXT:
if (e->we.edittext.str[0] != '\0') {
if (!StrEmpty(e->we.edittext.str)) {
Industry* i = GetIndustry(w->window_number);
int line = WP(w, indview_d).editbox_line;