mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-29 03:46:50 +01:00
Throwdowns: fixes the docs review found in the kit and its services
- match.teleports lets through only the publishing plugin's own teleports, and only while its match runs (its HUD is active, or the native flag is one of its modes); it was merged across every plugin and checked no match. - A mode's timer of 0 or past an hour no longer makes its card do nothing: the native flag takes it as 1 to 3600 s. flag.begin's seconds are checked as 1 to 3600, as the flag takes them. - skater.push and hold(true) return false with a reason without the stock physics, where they were dropped unseen. - telemetry's slam and struck are news since each plugin's own last read; reading them cleared them for every plugin. - A banner or callout of a new match shows whatever serial it starts from, and a document without the slot no longer resets its serial. - SmokeyDawg58's placement no longer divides input.wheel's whole notches by WHEEL_DELTA again.
This commit is contained in:
1 parent
efeae7e07d
commit
bf693dbe5c
17 files changed
+81
-42
No files matched your search
@@ -526,7 +526,7 @@ struct ApiFunctions {
|
||||
}
|
||||
const char* refusal = nullptr;
|
||||
if (++plugin.teleports_ > plugin.limits_.teleports_per_second) refusal = "asked more than twice in a second";
|
||||
else switch (plugin.services_.teleport(at, heading)) {
|
||||
else switch (plugin.services_.teleport(plugin.id(), at, heading)) {
|
||||
case Teleport::sent: break;
|
||||
case Teleport::forbidden: refusal = "the host has turned teleporting off"; break;
|
||||
case Teleport::unavailable: refusal = "teleporting is unavailable now (no skater, or a load)"; break;
|
||||
|
||||
Reference in new issue
Block a user