Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
But 1 Semestre 2
SAE Particule
Commits
8ca8db42
Commit
8ca8db42
authored
Jan 23, 2022
by
Rennarde
Browse files
Small fix to boolean check
parent
e80314f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
particles/update.go
View file @
8ca8db42
...
...
@@ -174,7 +174,7 @@ func (s *System) Update() {
if
s
.
Content
[
i
]
.
Overflow
==
false
{
s
.
Content
[
i
]
.
PositionX
+=
s
.
Content
[
i
]
.
SpeedX
s
.
Content
[
i
]
.
PositionY
+=
s
.
Content
[
i
]
.
SpeedY
if
config
.
General
.
Gravity
{
if
config
.
General
.
Gravity
!=
0
{
s
.
Content
[
i
]
=
gravite
(
s
.
Content
[
i
])
}
if
config
.
General
.
GravityCenter
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment