i can't be 100% certain. but, i am fairly certain the emboldened part or at least the change to something akin to the emboldened part was in the last decade or two. because i also remember old time threats of indecent exposure for simply urinating in public. i am sorta busy. so, i didn't have time to dig. but, i am fairly certain there is no statewide statute making simply peeing in public a crime anymore. think gravel roads, along the highway when you can't wait til the next town, etc.. that's left up to each town. i know i've heard of it cited within city limits in a few instances.
12.1-20-12.1. Indecent exposure.
1. An individual, with intent to arouse, appeal to, or gratify that individual's lust, passions,
or sexual desires, is guilty of a class A misdemeanor if that individual:
a. Masturbates in a public place or in the presence of a minor;
b. Exposes the individual's penis, vulva, or anus in a public place or to a minor in a
public or private place;
c. Exposes the individual's penis, vulva, or anus by unsolicited electronic means; or
d. Exposes the individual's penis, vulva, or anus by any electronic means to a minor.