Skip to content

Commit

Permalink
temporary fix for #275 which rolls back the fix for #237 which needs …
Browse files Browse the repository at this point in the history
…another solution
  • Loading branch information
Southclaws committed Jul 16, 2016
1 parent 85646fe commit a7ad1cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1139
1142
3 changes: 3 additions & 0 deletions gamemodes/sss/core/player/core.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ public OnPlayerUpdate(playerid)
if(ply_Data[playerid][ply_BitFlags] & Frozen)
return 0;

if(IsPlayerDataLoaded(playerid))

This comment has been minimized.

Copy link
@Southclaws

Southclaws Jul 17, 2016

Author Owner

Needa to be inverted!

return 0;

if(IsPlayerInAnyVehicle(playerid))
{
static
Expand Down
5 changes: 3 additions & 2 deletions gamemodes/sss/core/player/save-load.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,14 @@ LoadPlayerChar(playerid)
Held item
*/

data[0] = -1;

length = modio_read(filename, _T<H,E,L,D>, sizeof(data), data);

if(IsValidItemType(ItemType:data[0]) && length > 0)
{
itemid = AllocNextItemID(ItemType:data[0]);
itemid = CreateItem(ItemType:data[0]);
SetItemArrayData(itemid, data[2], data[1]);
CreateItem_ExplicitID(itemid);
GiveWorldItemToPlayer(playerid, itemid);

d:2:HANDLER("[LOAD:%p] HELD %d (%d adc) (itemid: %d)", playerid, data[0], data[1], itemid);
Expand Down

1 comment on commit a7ad1cd

@Ryder17z
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol @ your description.

Please sign in to comment.