Fix several more warnings

- As a side-effect, weapons with key skills other than the conventional three (edged, bashing, pole) are now fully supported (though the scenario editor UI doesn't yet support them)
This commit is contained in:
2015-01-11 16:43:23 -05:00
parent 148fa56a14
commit 43e4bcc048
17 changed files with 20 additions and 74 deletions

View File

@@ -432,7 +432,6 @@ bool handle_action(location the_point,sf::Event /*event*/) {
i = (the_point.x - TER_RECT_UL_X - 8) / scale;
j = (the_point.y - TER_RECT_UL_Y - 8) / scale;
if(scale > 4) {
short dim = editing_town ? town->max_dim() : 48;
if(cen_x + 5 > 256 / scale)
spot_hit.x = cen_x + 5 - 256/scale + i;
else spot_hit.x = i;