Commit ebd3ad27 authored by Timothy LAIRD's avatar Timothy LAIRD

post demonstration

parent 201597d5
......@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.10)
# Activate C99 standard:
SET(CMAKE_C_COMPILER "gcc" )
SET(CMAKE_C_FLAGS "-std=c99" )
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -Wextra -g")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "-Wall")
# project configuration :
......
......@@ -94,6 +94,7 @@ void Panel_drawRules(Panel * self, Main_Menu * rules){
UnloadFont(font);
EndDrawing();
}
void Panel_drawWin(Panel * self, Player * player, Mission * mission){
BeginDrawing();
Font font = GetFontDefault();
......
......@@ -251,7 +251,6 @@ int game_update(NetWorld * world, Player * players, Mission * missions, Font* fo
Graphic_diceRolling(currentPlayer, &(players[nodePlayerID]), originNode, currentNode, nbOfAttackers ,nbOfDefenders, listOfDices, font);
currentPlayer->hasSelectedNode = false;
free(listOfDices);
}else{
}
}
}
......
......@@ -88,7 +88,7 @@ void Player_start_turn(Player * self){
for(int nodeIndex = 0; nodeIndex < self->nodeCount; nodeIndex++){
totalSoldierCount += self->nodes[nodeIndex]->soldiers;
}
self->soldiers = fmax(1, totalSoldierCount/3);
self->soldiers = fmax(3, totalSoldierCount/3);
self->turnPhase = recruitment;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment