Skip to content

Commit

Permalink
fixes #4834: Nullbot no longer ignores starting units that cannot build
Browse files Browse the repository at this point in the history
  • Loading branch information
Forgon2100 committed Oct 8, 2018
1 parent 88f6d39 commit 0737d3a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -97,6 +97,7 @@
* Fix: Improved SemperFi-JS (commit:7af101472e0d66c4a73e684f17edf79f8d52505c, commit:6ed849c61a927184095fe7cbf3faa039e1f78860, commit:5b0de613a973ba96faab14ccf7f19a96c10c6a61, commit:4acfc135083ce3406668aa402e7852a0b5712832, commit:f5d3eda6a4aae357fa1d90491ab2f84d6612a6d4)
* Fix: Cyborg engineer and Cyborg mechanic having nothing but legs (commit:490b91d4420ba0985289955520229a1b8b022096, commit:a856dea5afb52fc4436304f66d1fa375293110e0)
* Fix: Nullbot can research Super Pulse Laser cyborgs without asserting (commit:52db9416a8fbb7984165bbdc58b4b96efe872c33, ticket:4639)
* Fix: Nullbot no longer ignores starting units that cannot build (ticket:4834)
* Other:
* Add: Docker file for cross-compilation (commit:b866f11b48c9043a505a8444b295b1c22aeffb6c)
* Add: Basic CMakeLists.txt structure (commit:fa0bde7ab818174ea09505d4fc6b560588522146, commit:ae921a9ca922434ce0ad445d1dfc52e36059ff39)
Expand Down
17 changes: 12 additions & 5 deletions data/mp/multiplay/skirmish/nb_includes/_events.js
Expand Up @@ -32,11 +32,18 @@ function eventStartLevel() {
// initialize the subpersonality randomly and don't care
personality = randomItem(subpersonalities);
}
// the following code is necessary to avoid some strange game bug when droids that
// are initially buried into the ground fail to move out of the way when a building
// is being placed right above them
enumTrucks().forEach(function(droid) {
orderDroidLoc(droid, DORDER_MOVE, droid.x + random(3) - 1, droid.y + random(3) - 1);
enumDroid(me).forEach(function(droid) {
if (droid.droidType === DROID_CONSTRUCT)
{
// the following code is necessary to avoid some strange game bug when droids that
// are initially buried into the ground fail to move out of the way when a building
// is being placed right above them
orderDroidLoc(droid, DORDER_MOVE, droid.x + random(3) - 1, droid.y + random(3) - 1);
}
else
{ // add other droids to groups so they won't be idle
groupDroid(droid);
}
});
}

Expand Down

0 comments on commit 0737d3a

Please sign in to comment.