Commit 1a8d5a33 authored by Chen Bill's avatar Chen Bill

set max to LEN_CHAT_MSG - 1

parent 124269e7
......@@ -982,8 +982,8 @@ bool Game::Initialize() {
col.setAlpha(224);
env->getSkin()->setColor((EGUI_DEFAULT_COLOR)i, col);
}
for (auto it = editbox_list.begin(); it != editbox_list.end(); ++it)
(*it)->setMax(MAX_INPUT_LENGTH);
for (auto ptr : editbox_list)
ptr->setMax(LEN_CHAT_MSG - 1);
dimension2du size = driver->getScreenSize();
if(window_size != size) {
window_size = size;
......
......@@ -604,8 +604,6 @@ extern Game* mainGame;
#define SIZE_QUERY_BUFFER 0x4000
#define MAX_INPUT_LENGTH 256
#define CARD_IMG_WIDTH 177
#define CARD_IMG_HEIGHT 254
#define CARD_THUMB_WIDTH 44
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment