prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

fixes modulus error when UpdateInterval is set to zero - EntityList.cs #810

Closed optimo closed 1 month ago

optimo commented 1 month ago

it will skip in the case UpdateInterval is set to zero, where it would normally error with the modulus operation on the next line. this patch does double-duty, when UpdateInterval is set to zero it allows effectively pausing of Entity updates.