From 77717563e15b277147ac47f45965ed3a98f25462 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 7 Jan 2008 16:41:03 +0000 Subject: (svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default. --- src/video/dedicated_v.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 { 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(); } -- cgit v1.2.3-70-g09d2