From e9ef15f07ba6d2a1dd8cb7b6f926dd16b017d5d2 Mon Sep 17 00:00:00 2001
From: jsalmon3 <>
Date: Sat, 10 Jul 2004 21:06:15 +0000
Subject: [PATCH] Timeout defaults to 20, added StatusLineW

---
 src/ui/script_ui.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ui/script_ui.cpp b/src/ui/script_ui.cpp
index d0b969846..8db7d869a 100644
--- a/src/ui/script_ui.cpp
+++ b/src/ui/script_ui.cpp
@@ -284,7 +284,6 @@ static int CclSetTitleScreens(lua_State* l)
 			LuaError(l, "incorrect argument");
 		}
 		TitleScreens[j] = calloc(1, sizeof(**TitleScreens));
-		TitleScreens[j]->Timeout = 20;
 		lua_pushnil(l);
 		while (lua_next(l, j + 1)) {
 			value = LuaToString(l, -2);
@@ -1935,6 +1934,10 @@ static int CclDefineUI(lua_State* l)
 					ui->StatusLineTextY = LuaToNumber(l, -1);
 					lua_pop(l, 1);
 					lua_pop(l, 1);
+				} else if (!strcmp(value, "width")) {
+					lua_rawgeti(l, j + 1, k + 1);
+					ui->StatusLineW = LuaToNumber(l, -1);
+					lua_pop(l, 1);
 				} else if (!strcmp(value, "font")) {
 					lua_rawgeti(l, j + 1, k + 1);
 					ui->StatusLineFont = FontByIdent(LuaToString(l, -1));