forked from github/server
do not read turn file for turn 0
This commit is contained in:
parent
1588d31a7e
commit
35c2baafbe
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue