mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-08-02 17:53:11 -05:00
Allow saving of maps with a total encounter rate of 0%.
This commit is contained in:
parent
cb2de16104
commit
bdf1cd89a7
|
|
@ -328,9 +328,9 @@ private void B_Save_Click(object sender, EventArgs e)
|
|||
int tot = 0;
|
||||
foreach (var nup in rate_spec) { tot += (int) nup.Value; }
|
||||
|
||||
if (tot != 100)
|
||||
if (tot != 100 && tot != 0)
|
||||
{
|
||||
WinFormsUtil.Error("Encounter rates must add up to 100%.");
|
||||
WinFormsUtil.Error("Encounter rates must add up to either 0% or 100%.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user