1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

(svn r21406) -Codechange: rename some textbuf related names to make them a bit more descriptive

This commit is contained in:
rubidium
2010-12-05 22:21:37 +00:00
parent 9139a6c858
commit bbaa262b0d
6 changed files with 68 additions and 65 deletions

View File

@@ -399,11 +399,11 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
/* If we are completing at the begin of the line, skip the ': ' we added */
if (tb_buf == pre_buf) {
offset = 0;
length = (tb->size - 1) - 2;
length = (tb->max_bytes - 1) - 2;
} else {
/* Else, find the place we are completing at */
offset = strlen(pre_buf) + 1;
length = (tb->size - 1) - offset;
length = (tb->max_bytes - 1) - offset;
}
/* Compare if we have a match */