do not read turn file for turn 0

This commit is contained in:
Enno Rehling 2014-04-25 07:47:23 +02:00
parent 1588d31a7e
commit 35c2baafbe
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ require "resources"
function run_editor()
local turn = get_turn()
if turn==0 then
if turn<0 then
turn = read_turn()
set_turn(turn)
end
@ -28,7 +28,7 @@ function run_turn()
require(config.game .. ".main")
local turn = get_turn()
if turn==0 then
if turn<0 then
turn = read_turn()
set_turn(turn)
end

View File

@ -8,7 +8,7 @@ function item_canuse(u, iname)
end
end
if iname=="rep_crossbow" then
-- only dwarves and halflings allowed to use towershield
-- only dwarves and halflings allowed to use repeating crossbow
return race=="dwarf" or race=="halfling"
end
if iname=="scale" then

View File

@ -98,7 +98,7 @@ FILE *updatelog;
const struct race *new_race[MAXRACES];
bool sqlpatch = false;
bool battledebug = false;
int turn = 0;
int turn = -1;
int NewbieImmunity(void)
{