diff options
author | 2015-10-05 23:49:07 +0800 | |
---|---|---|
committer | 2015-10-05 23:49:07 +0800 | |
commit | 7f6e5a022b800af0a2f7ab502743805e6fbc448c (patch) | |
tree | 6a96d4b0d49fc0f0325dc26661cbfc6d2ec3781a /src/core/bullet.cpp | |
parent | 068cfdc8fb0e31c9ff736ee426f1291d07115c11 (diff) | |
download | bullet-lab-remix-7f6e5a022b800af0a2f7ab502743805e6fbc448c.tar.xz |
Enable the BLR script VM (prototype).
The code (definitely) still require improvements.
TODOs:
Reimplement the call stack.
Unify float data types.
Diffstat (limited to 'src/core/bullet.cpp')
-rw-r--r-- | src/core/bullet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/bullet.cpp b/src/core/bullet.cpp index f7bcc90..c8cb50f 100644 --- a/src/core/bullet.cpp +++ b/src/core/bullet.cpp @@ -42,7 +42,7 @@ void bulletManager::deinit() for(int i=0;i<(int)COLOR_COUNT;++i) {delete bulent2d[i];delete bulent3d[i];} } -template<class T> +/*template<class T> int bulletManager::allocBullet() { if(!alloced) @@ -69,10 +69,10 @@ int bulletManager::createBullet() int ptr=allocBullet<T>(); bullets[ptr]->init(); return ptr; -} +}*/ void bulletManager::updateBullet() { - static int b=0; + /*static int b=0; ++b; if(b>15) { @@ -83,7 +83,7 @@ void bulletManager::updateBullet() x->vel.normalize(); x->rendercolor=0xC0FFFFFF; b=0; - } + }*/ for(int i=0;i<alloced;++i) if(bullets[i]->exist) bullets[i]->update(); |