Project

General

Profile

Actions

Bug #1676

open

hitpoints = 0 in units.ruleset causes divide by 0 crash

Added by Dean Brown 8 days ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
client-common
Target version:
-
Start date:
09/08/2025
Due date:
% Done:

0%

Estimated time:

Description

Careless rule set hacking strikes again, but there's nothing warning you not to set hitpoints = 0 in units.ruleset, and the ruleset loads OK.

In tilespec.c routine fill_unit_sprite_array()

  ihp = ((NUM_TILES_HP_BAR-1)*punit->hp) / ptype->hp;


Files

1676_S3_3_Main.patch (3.85 KB) 1676_S3_3_Main.patch Dean Brown, 09/13/2025 11:44 PM
1676_S3_2.patch (3.8 KB) 1676_S3_2.patch Dean Brown, 09/13/2025 11:44 PM
Actions

Also available in: Atom PDF