mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-21 23:34:18 +00:00
Do not use clampi to keep code simple
This commit is contained in:
parent
265da5fe50
commit
abfadcee49
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ var buffer: int = 0
|
|||
|
||||
|
||||
func spawn():
|
||||
buffer = clampi(buffer + 1, 0, buffer_cap)
|
||||
buffer += 1
|
||||
if buffer > buffer_cap:
|
||||
buffer = buffer_cap
|
||||
|
||||
|
||||
func _physics_process(_delta):
|
||||
|
|
Loading…
Reference in a new issue