cast to (int) from 16-bit ints

13:34 < VOlutar> there might be another fix.. but you may add it to yours
13:34 < VOlutar> this (int) shit for <<