Repository navigation
Conversation
Kharote
marked this pull request as ready for review
November 24, 2026 13:00
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The game keeps a ridden horse from galloping in towns (Trosky, Kuttenberg):
horse.speedScalescales every gait but does not lift that, andplayer.setPaceonly limits. A server wants full speed in its towns.The player's mode in a settlement switches the game's horse speed limiter on and off with one function (on adds the
horseSpeedLimitertag to the player, which keeps the ridden horse from galloping).server.jsonkeyhorseTownLimit(KCDS_SERVER_HORSE_TOWN_LIMIT), defaulttrue(the game's behaviour). It travels in the world config's flags byte (new bitkWorldNoHorseTownLimit).riding/town_gait.{hpp,cpp}: with the key off, the game client turns every request to switch the limiter on into one to switch it off, so a limiter set before goes too.How it was tested
world_config_test: the flag goes through encode and decode with the other flags.horseTownLimitoff: a horse mounted in Troskovice and ridden; the client logged the game switching the limiter on in the town (RIDING horse speed limiter on asked: lifted) and off again later. A scripted ride cannot ask for a gallop (the rider's speed input is not the player input the test drives), so the gallop itself was not seen.Checklist
python Dev/tools/format_source.py --checkpasses.