Mercurial > projects > chipmunkd
diff trunk/chipmunkd/cpArbiter.d @ 28:4541ca17975b
use __gshared as chipmunk heavily relies on globals and D would otherwise make them TLS
author | Extrawurst |
---|---|
date | Mon, 13 Dec 2010 21:40:56 +0100 |
parents | 4ceef5833c8c |
children |
line wrap: on
line diff
--- a/trunk/chipmunkd/cpArbiter.d Mon Dec 13 21:24:12 2010 +0100 +++ b/trunk/chipmunkd/cpArbiter.d Mon Dec 13 21:40:56 2010 +0100 @@ -183,8 +183,8 @@ // cpArbiter.c -------------------------- -cpFloat cp_bias_coef = 0.1f; -cpFloat cp_collision_slop = 0.1f; +__gshared cpFloat cp_bias_coef = 0.1f; +__gshared cpFloat cp_collision_slop = 0.1f; cpContact* cpContactInit(cpContact *con, cpVect p, cpVect n, cpFloat dist, cpHashValue hash)