A judge has dismissed a legal action brought by Manuel Noriega, the former dictator of Panama, against the publisher of the Call of Duty video games.
The ex-military ruler had tried to sue Activision after a character based on him featured in the title Black Ops II.
Noriega had sought damages.
But the judge at Los Angeles Superior Court ruled that the inclusion of the character was protected under free speech laws.
"This was an absurd lawsuit from the very beginning and we're gratified that in the end, a notorious criminal didn't win," said Rudy Giuliani, the former mayor of New York, who had defended Activision in the case.