| 154 | } |
| 155 | |
| 156 | void storePosUpdate(const Entity &src, bool just_created, BitStream &bs) |
| 157 | { |
| 158 | PUTDEBUG("before entReceivePosUpdate"); |
| 159 | bool position_updated = storePosition(src, bs); |
| 160 | |
| 161 | PUTDEBUG("before posInterpolators"); |
| 162 | if(!just_created && position_updated) |
| 163 | { |
| 164 | // if position has changed |
| 165 | // prepare interpolation table, given previous position |
| 166 | bs.StoreBits(1, src.m_has_interp); |
| 167 | if(src.m_has_interp) |
| 168 | { |
| 169 | bs.StoreBits(1, src.m_move_instantly); |
| 170 | if(!src.m_move_instantly) |
| 171 | storeInterpolationTree(src, bs); // Bintree sending happens here |
| 172 | } |
| 173 | } |
| 174 | PUTDEBUG("before storeOrientation"); |
| 175 | storeOrientation(src,bs); |
| 176 | PUTDEBUG("after storeOrientation"); |
| 177 | } |
| 178 | |
| 179 | void sendSeqMoveUpdate(const Entity &src, BitStream &bs) |
| 180 | { |
no test coverage detected