Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixed] pickup crash #2145

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Entities/Common/Controls/StandardControls.as
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ int zoomLevel = 1; // we can declare a global because this script is just used b
void onInit(CBlob@ this)
{
this.set_s32("tap_time", getGameTime());
CBlob@[] blobs;
this.set("pickup blobs", blobs);
this.set_u16("hover netid", 0);
this.set_bool("release click", false);
this.set_bool("can button tap", true);
this.addCommandID("pickup");
Expand Down Expand Up @@ -73,6 +70,7 @@ void onCommand(CBlob@ this, u8 cmd, CBitStream @params)

if (pickedup.isAttached()) return;

pickedup.setPosition(caller.getPosition());
caller.server_Pickup(pickedup);
}
else if (cmd == this.getCommandID("detach"))
Expand Down
Loading