Skip to content

Commit 2283d72

Browse files
committed
Merge branch 'release/0.2.2.455'
2 parents 1878363 + 30c1ebb commit 2283d72

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Version 0.2.2.455 - 2016-09-13
2+
## Fixes
3+
- Fixed drawing of overlays for actions that can't be executed ([#35](https://github.com/rm-code/On-The-Roadside/issues/35))
4+
- Fixed crash when shooting an adjacent world object ([#39](https://github.com/rm-code/On-The-Roadside/issues/39))
5+
- Fixed crash when a grenade hit a world object ([#40](https://github.com/rm-code/On-The-Roadside/issues/40))
6+
17
# Version 0.2.1.450 - 2016-09-12
28
## Fixes
39
- Fixed crash when trying to load a savegame containing grenades ([#32](https://github.com/rm-code/On-The-Roadside/issues/32))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# On The Roadside
22

3-
[![Version](https://img.shields.io/badge/Version-0.2.1.450-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest) [![LOVE](https://img.shields.io/badge/L%C3%96VE-0.10.1-EA316E.svg)](http://love2d.org/) [![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE.md)
3+
[![Version](https://img.shields.io/badge/Version-0.2.2.455-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest) [![LOVE](https://img.shields.io/badge/L%C3%96VE-0.10.1-EA316E.svg)](http://love2d.org/) [![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE.md)
44

55
On the Roadside is a turnbased strategy game. It is developed by [@rm-code](https://twitter.com/rm_code) using [Lua](http://www.lua.org/) and the [LÖVE](https://love2d.org/) framework.
66

src/items/weapons/Projectile.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Projectile.new( character, tiles )
2929
local energy = 100;
3030
local timer = 0;
3131
local index = 1;
32-
local tile;
32+
local tile = character:getTile();
3333
local previousTile;
3434

3535
-- ------------------------------------------------

src/items/weapons/ProjectileManager.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,17 @@ function ProjectileManager.update( dt )
8181
-- Stop the bullet if the object is indestructible.
8282
if not tile:getWorldObject():isDestructible() then
8383
print( "Hit indestructible object" );
84-
hitTile( i, projectile:getPreviousTile(), projectile );
84+
-- HACK: Need proper handling for explosive type weapons.
85+
if projectile:getWeapon():getWeaponType() == 'Grenade' or projectile:getWeapon():getMagazine():getAmmoType() == 'Rocket' then
86+
hitTile( i, projectile:getPreviousTile(), projectile );
87+
return;
88+
end
89+
hitTile( i, tile, projectile );
8590
return;
8691
end
8792

88-
-- Explosive weapons never pass through objects.
89-
if projectile:getWeapon():getMagazine():getAmmoType() == 'Rocket' then
93+
-- HACK: Need proper handling for explosive type weapons.
94+
if projectile:getWeapon():getWeaponType() == 'Grenade' or projectile:getWeapon():getMagazine():getAmmoType() == 'Rocket' then
9095
print( "Hit object with explosive ammunition" );
9196
hitTile( i, tile, projectile );
9297
return;

src/ui/OverlayPainter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function OverlayPainter.new( game, particleLayer )
111111
-- @param character (Character) The character to draw the path for.
112112
--
113113
local function drawPath( character )
114-
if #character:getActions() ~= 0 then
114+
if character:getActionPoints() > 0 and #character:getActions() ~= 0 then
115115
local total = character:getActionPoints();
116116
local ap = total;
117117

version.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
local version = {
22
major = 0,
33
minor = 2,
4-
patch = 1,
5-
build = 450,
4+
patch = 2,
5+
build = 455,
66
}
77

88
return string.format( "%d.%d.%d.%d", version.major, version.minor, version.patch, version.build );

0 commit comments

Comments
 (0)