From 0fb5c856603a3575c2789965fb35acc785cee9f3 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Wed, 6 Dec 2023 15:52:00 -0500 Subject: [PATCH] Everything is false. --- SQCSim-common/netprotocol.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/SQCSim-common/netprotocol.h b/SQCSim-common/netprotocol.h index f724226..d8a0b6a 100644 --- a/SQCSim-common/netprotocol.h +++ b/SQCSim-common/netprotocol.h @@ -38,24 +38,24 @@ namespace netprot { /* Sous-structures */ struct Keys { - bool forward, - backward, - left, - right, - jump, - shoot, - block; + bool forward = false, + backward = false, + left = false, + right = false, + jump = false, + shoot = false, + block = false; }; struct States { - bool jumping, - shooting, - hit, - powerup, - dead, - still, - jumpshot, - running; + bool jumping = false, + shooting = false, + hit = false, + powerup = false, + dead = false, + still = false, + jumpshot = false, + running = false; }; /* Structures de paquets */