News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Clear all rules for player

Started by Yona-TYT, December 09, 2024, 08:49:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT



There is currently rules.clear() , but this clears all rules.

I need to clear the rules for a specific player.

for example: rules.player_clear(pl_nr)

Yona-TYT

Well, it doesn't seem like a difficult thing to add, I made a small patch although I haven't tested it.

0001-Add-clear_player_rules.patch

prissi