mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-23 07:23:01 +02:00
Fix bullets like inkvine not falling down
Make bullets fall down by default
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
}
|
||||
},
|
||||
"Falling": {
|
||||
"FallsDown": true,
|
||||
"Bounces": true
|
||||
},
|
||||
"SeekFactor": -1
|
||||
|
@@ -166,8 +166,7 @@
|
||||
"Wall": {}
|
||||
},
|
||||
"Falling": {
|
||||
"GravityFactor": 0.7,
|
||||
"FallsDown": true
|
||||
"GravityFactor": 0.7
|
||||
},
|
||||
"OutOfRangeGuns": [
|
||||
"blast_weak",
|
||||
|
@@ -36,7 +36,6 @@
|
||||
"Sound": "hits/petrify",
|
||||
"HitsObjects": false,
|
||||
"Falling": {
|
||||
"FallsDown": true,
|
||||
"DestroyOnDrop": true
|
||||
}
|
||||
},
|
||||
|
@@ -884,6 +884,7 @@ static void LoadBullet(
|
||||
{
|
||||
json_t *falling = json_find_first_label(node, "Falling")->child;
|
||||
LoadFloat(&b->Falling.GravityFactor, falling, "GravityFactor");
|
||||
b->Falling.FallsDown = true;
|
||||
LoadBool(&b->Falling.FallsDown, falling, "FallsDown");
|
||||
LoadBool(&b->Falling.DestroyOnDrop, falling, "DestroyOnDrop");
|
||||
LoadBool(&b->Falling.Bounces, falling, "Bounces");
|
||||
|
Reference in New Issue
Block a user