mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 09:10:49 +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:
@@ -489,7 +489,7 @@ Texture2D * Renderer::getPlayerColorTexture(PlayerColor playerColor) {
|
||||
customTexture= customTextureMagenta;
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
throw megaglest_runtime_error("Unknown playercolor: " + intToStr(playerColor));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user