summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-24 17:13:24 +0000
committerrubidium <rubidium@openttd.org>2009-11-24 17:13:24 +0000
commit8371be352b8e4da1637fb63694ce878bc8a6b342 (patch)
tree0fd0cb60cfce086bc55bf24d5618dec6a23a2b0b /src/widget_type.h
parent75bd9858760371759aa190aaf214bfa629694824 (diff)
downloadopenttd-8371be352b8e4da1637fb63694ce878bc8a6b342.tar.xz
(svn r18273) -Codechange: do not require widget numbers for default widgets (close, sticky, resize buttons and the caption), except when you want to use SetStringParameter for the caption ofcourse. Also remove the requirement for some of the WDF flags; no need to test for both the flag whether a feature is used and whether the feature is in action.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index 0d8db9ec9..9f90e8339 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -737,7 +737,7 @@ static inline NWidgetPart SetPIP(uint8 pre, uint8 inter, uint8 post)
* Child widgets must have a index bigger than the parent index.
* @ingroup NestedWidgetParts
*/
-static inline NWidgetPart NWidget(WidgetType tp, Colours col, int16 idx)
+static inline NWidgetPart NWidget(WidgetType tp, Colours col, int16 idx = -1)
{
NWidgetPart part;