A person commits an offense if he discharges within the city a firearm or air- or gas-operated rifle or pistol. It is a defense to prosecution under this section that the discharge of such weapon was authorized by a provision of the Penal Code of the state.
(1996 Code, sec. 7.201)