CLuaInstance: Precise error message for obsolete hide() parameter

- Supplement for commit 75631a97f1
This commit is contained in:
M. Liebmann
2016-01-01 14:42:04 +01:00
parent a7790ce049
commit f12e49e720
5 changed files with 12 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ int CLuaInstCCWindow::CCWindowHide(lua_State *L)
bool tmp1 = false;
std::string tmp2 = "false";
if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2)))
printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "cwindow");
obsoleteHideParameter(L);
D->w->hide();
return 0;