| 162 | } |
| 163 | |
| 164 | void NetConnection::setGhostTo(bool ghostTo) |
| 165 | { |
| 166 | if(mLocalGhosts) // if ghosting to this is already enabled, silently return |
| 167 | return; |
| 168 | |
| 169 | if(ghostTo) |
| 170 | { |
| 171 | mLocalGhosts = new NetObject *[MaxGhostCount]; |
| 172 | for(S32 i = 0; i < MaxGhostCount; i++) |
| 173 | mLocalGhosts[i] = NULL; |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | void NetConnection::setGhostFrom(bool ghostFrom) |
| 178 | { |