Skip to content

Commit

Permalink
Restore factory artifact drops in multiplayer.
Browse files Browse the repository at this point in the history
Was mistakenly removed with commit af9c913.

Fixes ticket 4836.
  • Loading branch information
KJeff01 committed Oct 26, 2018
1 parent b103bea commit fce314d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -75,6 +75,7 @@
* Change: Move structure limiting into structure.json (commit:924135c98d630d638fcee74b8ebf85d10af2dfa1, commit:9c272aa528bab38fb8d598a7f2676745ca347a4b)
* Fix: Do not assert on loading skirmish saves when the player has lost or won (commit:77f9e5cada8469948c66ca9c3851e6991f533142, ticket:4590, ticket:3928)
* Fix: Score and kills not showing in skirmish (commit:a74041b99442caa1c7e14c0ff409fc120c20e666, ticket:3491)
* Fix: Missing artifacts after destroying factories (ticket:4836)
* Scripting:
* Add: Add a way for a script library to register a namespace (commit:19d37399c3fcb31fbb87cb1419125c6cb133aa16)
* Add: Function useSafetyTransport() (commit:d511cad4d15ca7ae5ecefc678527bb0a253cafde)
Expand Down
5 changes: 5 additions & 0 deletions src/structure.cpp
Expand Up @@ -4637,6 +4637,11 @@ bool destroyStruct(STRUCTURE *psDel, unsigned impactTime)
}
}

if (bMultiPlayer)
{
technologyGiveAway(psDel); // Drop an artifact, if applicable.
}

// updates score stats only if not wall
if (!bMinor)
{
Expand Down

0 comments on commit fce314d

Please sign in to comment.