public void MouseClick(MapEventInfo mei) { oldvalue = mei.getTile(mei.start.tx, mei.start.ty); newvalue = mei.tile; if (oldvalue != newvalue) { mei.opManager.beginGroup("Map: FloodFill"); PrimitiveDrawer.FloodFill(mei.start.tx, mei.start.ty, new PrimitiveDrawer.CheckCallback(ccb), new PrimitiveDrawer.Callback(cb), mei); mei.opManager.endGroup(); } }