mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 22:59:30 +00:00
(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.
This commit is contained in:
@@ -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(); }
|
||||
|
Reference in New Issue
Block a user