Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 27, 2010, 7:53:30 PM (14 years ago)
Author:
dafrick
Message:

Fixing small bug in Script (regarding number of executions).
Fixed bug in WorldEntity, that caused the visibility and activity to be synchronized incorrectly (since bVisibleMem and bActiveMem are not synchronized).
Some small changed in documentation.
Started "synchronizing" pickups. Seems to work (except GUI), but haven't done any extensive testing yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/objects/Script.cc

    r7486 r7493  
    186186        {
    187187            // If the number of executions have been used up.
    188             if(this->times_ != Script::INF && this->remainingExecutions_ == 0)
     188            if(this->times_ != Script::INF && this->remainingExecutions_ <= 0)
    189189                return;
    190190        }
     
    209209                    callStaticNetworkFunction(Script::executeHelper, it->first, this->getCode(), this->getMode(), this->getNeedsGraphics());
    210210                    if(this->times_ != Script::INF) // Decrement the number of remaining executions.
     211                    {
    211212                        this->remainingExecutions_--;
     213                        if(this->remainingExecutions_ <= 0)
     214                            break;
     215                    }
    212216                }
    213217            }
Note: See TracChangeset for help on using the changeset viewer.