Project

General

Profile

Actions

Bug #1676

open

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

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

Status:
In Review
Priority:
Normal
Category:
Server
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_2.patch (4.36 KB) 1676_S3_2.patch Dean Brown, 10/19/2025 02:31 AM
1676_S3_3.patch (4.41 KB) 1676_S3_3.patch Dean Brown, 10/22/2025 04:48 AM
1676_Main.patch (4.41 KB) 1676_Main.patch Dean Brown, 10/22/2025 04:51 AM
Actions

Also available in: Atom PDF