Skip to content

Commit

Permalink
Added tsoj to contributors list.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherCommander committed Feb 20, 2021
1 parent e00be33 commit 74c532c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Doc/contributors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ stardotstar
Konstantinos Sykas (Getafix)
David Taylor (dajt)
Tichy
Jost Triller (tsoj)
Eric Walch
Michael Werle (Micha)
Gary Wong (Y A J)
Expand Down
2 changes: 2 additions & 0 deletions src/Core/OOShipRegistry.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ - (NSDictionary *) shipInfoForKey:(NSString *)key
return [_shipData objectForKey:key];
}


- (void) setShipInfoForKey:(NSString *)key with:(NSDictionary *)newShipData
{
NSMutableDictionary *mutableDict = [NSMutableDictionary dictionaryWithDictionary:_shipData];
Expand All @@ -217,6 +218,7 @@ - (void) setShipInfoForKey:(NSString *)key with:(NSDictionary *)newShipData
_shipData = [[NSDictionary dictionaryWithDictionary:mutableDict] retain];
}


- (NSDictionary *) effectInfoForKey:(NSString *)key
{
return [_effectData objectForKey:key];
Expand Down
3 changes: 2 additions & 1 deletion src/Core/Scripting/OOJSShip.m
Original file line number Diff line number Diff line change
Expand Up @@ -4360,6 +4360,7 @@ static JSBool ShipStaticShipDataForKey(JSContext *context, uintN argc, jsval *vp
OOJS_NATIVE_EXIT
}


static JSBool ShipStaticSetShipDataForKey(JSContext *context, uintN argc, jsval *vp)
{
OOJS_NATIVE_ENTER(context);
Expand All @@ -4378,4 +4379,4 @@ static JSBool ShipStaticSetShipDataForKey(JSContext *context, uintN argc, jsval
return NO;
}
OOJS_NATIVE_EXIT
}
}

0 comments on commit 74c532c

Please sign in to comment.