mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
bugfix throwing exception
This commit is contained in:
parent
4f3a53ca53
commit
809a622cd9
1 changed files with 6 additions and 1 deletions
|
|
@ -99,7 +99,12 @@ function (Doll, Settings, Nc, Exception, SpectatorDoll, RagDoll) {
|
|||
|
||||
// FIXME: do something better then just respawn in GameController
|
||||
if(this.holdingItem) {
|
||||
this.throw(0, 0, 0, this.holdingItem)
|
||||
var options = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
av: 0
|
||||
};
|
||||
this.throw(options, this.holdingItem)
|
||||
}
|
||||
|
||||
// prepare for creating the ragdoll
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue