History

fix bug that was deleting actions with 0 ttl. in js interface, action parameter 'lifetime' is now called 'ttl'

Seth Alves committed 11 years ago

Commit 8d0aaed1 parent 5cf936f9 files · +62 −34Browse files

Showing the changes to interface/src/InterfaceActionFactory.cpp (1 of 9 files). Show all

Unified · Split

interface/src/InterfaceActionFactory.cpp+2−1
@@ -66,7 +66,8 @@ EntityActionPointer InterfaceActionFactory::factoryBA(EntityItemPointer ownerEnt · 65 unmodified lines
66 if (action) {66 if (action) {
67 action->deserialize(data);67 action->deserialize(data);
68 if (action->lifetimeIsOver()) {68 if (action->lifetimeIsOver()) {
69 qDebug() << "InterfaceActionFactory::factoryBA lifetimeIsOver during action creation";69 qDebug() << "InterfaceActionFactory::factoryBA lifetimeIsOver during action creation --"
70 << action->getExpires() << "<" << usecTimestampNow();
70 return nullptr;71 return nullptr;
71 }72 }
72 }73 }