diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-07 16:41:03 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-07 16:41:03 +0000 |
commit | 77717563e15b277147ac47f45965ed3a98f25462 (patch) | |
tree | 648a1eab0222a8f8a6bf20bea457f6ee0273f313 /src/video | |
parent | 2832a6cafb5c8770fb8a62c1c0351b2e9c293da7 (diff) | |
download | openttd-77717563e15b277147ac47f45965ed3a98f25462.tar.xz |
(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/dedicated_v.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video/dedicated_v.h b/src/video/dedicated_v.h index 0ade00f92..434a3c041 100644 --- a/src/video/dedicated_v.h +++ b/src/video/dedicated_v.h @@ -22,7 +22,13 @@ public: class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> { public: +#ifdef DEDICATED + /* Automatically select this dedicated driver when making a dedicated + * server build. */ + static const int priority = 10; +#else static const int priority = 0; +#endif /* virtual */ const char *GetName() { return "dedicated"; } /* virtual */ const char *GetDescription() { return "Dedicated Video Driver"; } /* virtual */ Driver *CreateInstance() { return new VideoDriver_Dedicated(); } |