Well, like I said, the code is easy to search. Look for police authority (hint).
If you’re too lazy to read it and you apparently have never read it then you clearly don’t have a clue what you’re talking about so stop acting like you do. Stop claiming it was illegal. Prove to me it was illegal. Show me in the code that anything the cop did was illegal. If it was illegal then it should be easy to find too. The fact is, it wasn’t illegal, you can’t prove it was illegal, and you don’t know what you’re talking about. You just dislike cops and want to assume it was illegal despite the facts.
Maybe this is too confusing to you, so let me give you the 1965 U.S. Supreme Court case of Shuttlesworth vs. The City of Birmingham. (https://supreme.justia.com/cases/federal/us/382/87/case.html)
In this case, a man was arrested for loitering and for disobeying a lawful order by a police officer. His conviction was overturned on both charges. On the issue of "disobeying a lawful order" the court found:
We find the petitioner's conviction under the second count of the complaint, for violation of § 1231 of the General City Code, to be constitutionally invalid for a completely distinct reason. That ordinance makes it a criminal offense for any person "to refuse or fail to comply with any lawful order, signal or direction of a police officer." Like the provisions of § 1142 discussed above, the literal terms of this ordinance are so broad as to evoke constitutional doubts of the utmost gravity.
What this Supreme Court decision did was create a need for States, counties and cities to clearly define what lawful orders are.
Just like the Constitution spells out what the Federal Government has the authority to do, so State, county and city laws and ordinances spell out what authority police officers have. They do not have the authority to tell someone to put out a cigarette.
It's not there.
>assume it was illegal despite the facts<
What facts? Show us some facts.