mirror of
https://github.com/ZDoom/ZDRay.git
synced 2025-02-16 16:41:41 +00:00
Strip quotes from the sun color string
This commit is contained in:
parent
e0b8335937
commit
5124788013
1 changed files with 3 additions and 1 deletions
|
@ -118,9 +118,11 @@ void FLevel::SetupLights()
|
|||
{
|
||||
const UDMFKey &key = thing->props[propIndex];
|
||||
|
||||
if (!stricmp(key.key, "zdraysuncolor") && key.value)
|
||||
if (!stricmp(key.key, "zdraysuncolor"))
|
||||
{
|
||||
FString hex = FString("0x") + FString(key.value);
|
||||
hex.StripChars("\"");
|
||||
printf("Sun color: %s\n", hex);
|
||||
int rgb = hex.ToULong();
|
||||
lightcolor = (uint32_t)rgb;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue