Address comments

This commit is contained in:
mochi
2020-07-20 06:59:40 +02:00
parent c60f8761fa
commit dd5c88eb74
9 changed files with 19 additions and 15 deletions

View File

@@ -42,7 +42,8 @@ PROCESSING_SUBSYSTEM_DEF(instruments)
if(!I.id)
qdel(I)
continue
instrument_data[I.id] = I
else
instrument_data[I.id] = I
CHECK_TICK
/**

View File

@@ -131,7 +131,7 @@ SUBSYSTEM_DEF(sounds)
reserved_channels -= text_channel
// push reserve index up, which makes it now on a channel that is reserved
channel_reserve_high++
// swap the reserved channel wtih the unreserved channel so the reserve index is now on an unoccupied channel and the freed channel is next to be used.
// swap the reserved channel with the unreserved channel so the reserve index is now on an unoccupied channel and the freed channel is next to be used.
channel_list.Swap(channel_reserve_high, index)
// now, an existing reserved channel will likely (exception: unreserving last reserved channel) be at index
// get it, and update position.