mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 00:48:58 +02:00
- bugfix to allow headless server to load a texture for new tilesets where they must read it to determine parts.
- converted asserts to exceptions
This commit is contained in:
@@ -218,7 +218,9 @@ string FontMetrics::wordWrapText(string text, int maxWidth) {
|
||||
// ===============================================
|
||||
|
||||
Font::Font(FontTextHandlerType type) {
|
||||
assert(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false);
|
||||
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == true) {
|
||||
throw megaglest_runtime_error("Loading graphics in headless server mode not allowed!");
|
||||
}
|
||||
|
||||
inited = false;
|
||||
this->type = fontTypeName;
|
||||
|
Reference in New Issue
Block a user