mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-15 03:39:56 +01:00
Disallow GOL rulesets with no B states
This commit is contained in:
parent
d040de396a
commit
5f90a80fe3
@ -13,6 +13,10 @@ int ParseGOLString(const String &value)
|
||||
{
|
||||
begin |= 1U << (it[0] - '0');
|
||||
}
|
||||
if (!begin)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Must have a /S immediately afterwards
|
||||
if (it < value.end() - 1 && it[0] == '/' && it[1] == 'S')
|
||||
|
Loading…
x
Reference in New Issue
Block a user