(svn r6938) -Codechange: Comments, typo, variable naming, whitespace, strecpy and simplification

of order_gui (only disable a single widget if not local player, all others aren't
 visible anyways).
This commit is contained in:
Darkvater
2006-10-24 23:11:40 +00:00
parent b63d946898
commit 93599c1be5
3 changed files with 37 additions and 32 deletions

View File

@@ -1094,12 +1094,12 @@ void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth,
w = AllocateWindowDesc(&_query_string_desc);
GetString(_edit_str_buf, str, lastof(_edit_str_buf));
_edit_str_buf[realmaxlen-1] = '\0';
_edit_str_buf[realmaxlen - 1] = '\0';
if (maxlen & 0x1000) {
WP(w, querystr_d).orig = NULL;
} else {
strcpy(_orig_str_buf, _edit_str_buf);
strecpy(_orig_str_buf, _edit_str_buf, lastof(_orig_str_buf));
WP(w, querystr_d).orig = _orig_str_buf;
}