Lua tests: code coverage for applying some items
Add a new debug flag prevent_pline, which prevents all messages from going out to the UI. This prevents the tests from stopping for -more-. Add rudimentary tests for applying whistles, camera, and stethoscope.
This commit is contained in:
@@ -1494,6 +1494,12 @@ nhl_debug_flags(lua_State *L)
|
||||
iflags.debug_overwrite_stairs = (boolean) val;
|
||||
}
|
||||
|
||||
/* prevent pline going out to the UI */
|
||||
val = get_table_boolean_opt(L, "prevent_pline", -1);
|
||||
if (val != -1) {
|
||||
iflags.debug_prevent_pline = (boolean) val;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user