Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Apr 11, 2020
1 parent 97c7260 commit 26ce630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/DMAPI/tgs/core/core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
#ifndef TGS_V3_API
TGS_ERROR_LOG("Detected V3 API but TGS_V3_API isn't defined!")
#else
switch(version.major)
switch(version.minor)
if(2)
api_datum = /datum/tgs_api/v3210
#endif
if(4)
switch(version.major)
switch(version.minor)
if(0)
api_datum = /datum/tgs_api/v4

var/datum/tgs_version/max_api_version = TgsMaximumAPIVersion();
if(version.suite != null && version.major != null && version.minor != null && version.patch != null && version.deprefixed_parameter > max_api_version.deprefixed_parameter)
if(version.major != null && version.minor != null && version.patch != null && version.deprecated_patch != null && version.deprefixed_parameter > max_api_version.deprefixed_parameter)
TGS_ERROR_LOG("Detected unknown API version! Defaulting to latest. Update the DMAPI to fix this problem.")
api_datum = /datum/tgs_api/latest

Expand Down
2 changes: 1 addition & 1 deletion src/Tgstation.Server.Host/IServerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface IServerFactory
/// <summary>
/// The <see cref="IIOManager"/> for the <see cref="IServerFactory"/>.
/// </summary>
public IIOManager IOManager { get; }
IIOManager IOManager { get; }

/// <summary>
/// Create a <see cref="IServer"/>
Expand Down

0 comments on commit 26ce630

Please sign in to comment.