File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ bool Baseapp::canShutdown()
181
181
Entities<Base>::ENTITYS_MAP::iterator iter = entities.begin ();
182
182
for (; iter != entities.end (); iter++)
183
183
{
184
- if (static_cast <Base*>(iter->second .get ())->hasDB ())
184
+ // if(static_cast<Base*>(iter->second.get())->hasDB())
185
185
{
186
186
count++;
187
187
}
@@ -234,8 +234,8 @@ void Baseapp::onShutdown(bool first)
234
234
Entities<Base>::ENTITYS_MAP::iterator iter = entities.begin ();
235
235
for (; iter != entities.end (); iter++)
236
236
{
237
- if (static_cast <Base*>(iter->second .get ())->hasDB () &&
238
- static_cast <Base*>(iter->second .get ())->cellMailbox () == NULL )
237
+ // if(static_cast<Base*>(iter->second.get())->hasDB() &&
238
+ // static_cast<Base*>(iter->second.get())->cellMailbox() == NULL)
239
239
{
240
240
this ->destroyEntity (static_cast <Base*>(iter->second .get ())->id (), true );
241
241
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ bool Cellapp::canShutdown()
86
86
for (; iter != entities.end (); iter++)
87
87
{
88
88
Entity* pEntity = static_cast <Entity*>(iter->second .get ());
89
- if (pEntity->baseMailbox () != NULL &&
90
- pEntity->scriptModule ()->isPersistent ())
89
+ // if(pEntity->baseMailbox() != NULL &&
90
+ // pEntity->scriptModule()->isPersistent())
91
91
{
92
92
lastShutdownFailReason_ = " destroyHasBaseEntitys" ;
93
93
return false ;
@@ -105,17 +105,17 @@ void Cellapp::onShutdown(bool first)
105
105
uint32 count = g_serverConfig.getCellApp ().perSecsDestroyEntitySize ;
106
106
Entities<Entity>::ENTITYS_MAP& entities = this ->pEntities ()->getEntities ();
107
107
108
- std::vector<Entity*> vecs;
109
-
110
108
while (count > 0 )
111
109
{
110
+ std::vector<Entity*> vecs;
111
+
112
112
bool done = false ;
113
113
Entities<Entity>::ENTITYS_MAP::iterator iter = entities.begin ();
114
114
for (; iter != entities.end (); iter++)
115
115
{
116
116
Entity* pEntity = static_cast <Entity*>(iter->second .get ());
117
- if (pEntity->baseMailbox () != NULL &&
118
- pEntity->scriptModule ()->isPersistent ())
117
+ // if(pEntity->baseMailbox() != NULL &&
118
+ // pEntity->scriptModule()->isPersistent())
119
119
{
120
120
Space* space = Spaces::findSpace (pEntity->spaceID ());
121
121
if (space && space->creatorID () == pEntity->id ())
You can’t perform that action at this time.
0 commit comments