?!
This commit is contained in:
parent
745f40bc37
commit
2eacc0477b
@ -37,8 +37,8 @@
|
||||
#define STRENGTH_SPEED_BOOST 10 //Pourcentage
|
||||
#define BULLET_TIME .2 //secondes
|
||||
|
||||
#define SYNC_ACC 200 // ms
|
||||
#define CMOD_ACC 1500 // ms
|
||||
#define SYNC_ACC 100 // ms
|
||||
#define CMOD_ACC 1000 // ms
|
||||
|
||||
typedef uint8_t BlockType;
|
||||
enum BLOCK_TYPE { BTYPE_AIR, BTYPE_DIRT, BTYPE_GRASS, BTYPE_METAL, BTYPE_ICE, BTYPE_GREENGRASS, BTYPE_LAST };
|
||||
|
@ -384,12 +384,13 @@ void Server::Run() {
|
||||
if (cmod)
|
||||
chunkdiffs.emplace_back(cmod);
|
||||
bullit.push_back(bull);
|
||||
delete bullet;
|
||||
}
|
||||
}
|
||||
|
||||
for (auto& bull: bullit)
|
||||
for (auto& bull : bullit) {
|
||||
delete* bull;
|
||||
bullets.erase(bull);
|
||||
}
|
||||
|
||||
if (!bullit.empty())
|
||||
bullit.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user