Skip to content

Commit 7c1e9ef

Browse files
authored
fix: RewindableAction to include ticks at the end of the tickset (#513)
The `range` function in GDScript is exclusive, so we need to increment the latest tick by 1 in order to successfully queue the current tick.
1 parent 25002be commit 7c1e9ef

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

addons/netfox.extras/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="netfox.extras"
44
description="Game-specific utilities for Netfox"
55
author="Tamas Galffy and contributors"
6-
version="1.33.0"
6+
version="1.33.1"
77
script="netfox-extras.gd"

addons/netfox.internals/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="netfox.internals"
44
description="Shared internals for netfox addons"
55
author="Tamas Galffy and contributors"
6-
version="1.33.0"
6+
version="1.33.1"
77
script="plugin.gd"

addons/netfox.noray/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="netfox.noray"
44
description="Bulletproof your connectivity with noray integration for netfox"
55
author="Tamas Galffy and contributors"
6-
version="1.33.0"
6+
version="1.33.1"
77
script="netfox-noray.gd"

addons/netfox/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="netfox"
44
description="Shared internals for netfox addons"
55
author="Tamas Galffy and contributors"
6-
version="1.33.0"
6+
version="1.33.1"
77
script="netfox.gd"

addons/netfox/rewindable-action.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func _submit_state(bytes: PackedByteArray) -> void:
221221
# Don't compare past last event, as to not cancel events the host simply doesn't know about
222222
var latest_tick = maxi(last_known_tick, NetworkRollback.history_start)
223223

224-
for tick in range(earliest_tick, latest_tick):
224+
for tick in range(earliest_tick, latest_tick + 1):
225225
var is_tick_active = active_ticks.has(tick)
226226
if is_tick_active != is_active(tick):
227227
_queued_changes[tick] = is_tick_active

0 commit comments

Comments
 (0)