Fixed makeinv and riseinv.
Increased total sprite limit to 0xFFFE (65534).
Authored by: SumolX 2009-03-23
Parent: [r2168]
Child: [r2170]