Fixed size check, rewrote for easier integration with a GUI
Authored by: nabber00 2008-09-06
Parent: [r239]
Child: [r241]