rename sprite flags, and get rid if 'funcid' out of the object type gflags