Account for PRECIP_NONE
This commit is contained in:
parent
51e530f861
commit
fd4e128641
1 changed files with 3 additions and 0 deletions
|
|
@ -4157,6 +4157,9 @@ preciptype_t get_precip(const char *word)
|
||||||
|
|
||||||
if (eval)
|
if (eval)
|
||||||
return eval;
|
return eval;
|
||||||
|
|
||||||
|
if (fasticmp("PRECIP_NONE",word))
|
||||||
|
return PRECIP_NONE;
|
||||||
}
|
}
|
||||||
deh_warning("Couldn't find weather type named 'PRECIP_%s'",word);
|
deh_warning("Couldn't find weather type named 'PRECIP_%s'",word);
|
||||||
return PRECIP_NONE;
|
return PRECIP_NONE;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue