From 7f6e5a022b800af0a2f7ab502743805e6fbc448c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 5 Oct 2015 23:49:07 +0800 Subject: Enable the BLR script VM (prototype). The code (definitely) still require improvements. TODOs: Reimplement the call stack. Unify float data types. --- src/core/bullet.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/bullet.cpp') 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 +/*template int bulletManager::allocBullet() { if(!alloced) @@ -69,10 +69,10 @@ int bulletManager::createBullet() int ptr=allocBullet(); 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;iexist) bullets[i]->update(); -- cgit v1.2.3