Any act done, offense committed, or right accruing, accrued, or acquired, or liability, penalty, forfeiture, or punishment incurred prior to the time of adoption of this code shall not be affected by such adoption, but may be enjoyed, asserted, enforced, prosecuted, or inflicted as fully and to the same extent as if the adoption had not been effected.