Fix attachment with swatter removing bomb animation rewind

This commit is contained in:
Benau 2018-09-17 16:15:15 +08:00
parent 02a3de4dd8
commit dc059aa8f7

View File

@ -285,7 +285,9 @@ void Attachment::rewindTo(BareNetworkString *buffer)
return;
}
int16_t ticks_left = buffer->getUInt16();
int16_t ticks_left = 0;
if (new_type != ATTACH_NOTHING)
ticks_left = buffer->getUInt16();
// Now it is a new attachment:
if (type == (ATTACH_BOMB | 64)) // we have previous owner information