From 50ba3d5e1e9f9eeda049a348efa4645af07610bc Mon Sep 17 00:00:00 2001 From: oroborus Date: Thu, 14 Aug 2008 14:47:44 +0000 Subject: - novy widget widget_choicegroup - moznost ukladat a nacitavat rozohranu hru ( uklada sa pomocou F2) ( neda sa ulozit sietovy multiplayer, a este nie je dokonce ulozenie hranie s AI ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@195 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/arena.c | 3 +++ src/base/arena.h | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'src/base') diff --git a/src/base/arena.c b/src/base/arena.c index f7e917d..019dbb4 100644 --- a/src/base/arena.c +++ b/src/base/arena.c @@ -61,6 +61,9 @@ arena_t* newArena(int w, int h) new->spaceItem = newSpace(w, h, zone_w, zone_h, getStatusItem, setStatusItem); new->spaceShot = newSpace(w, h, zone_w, zone_h, getStatusShot, setStatusShot); + new->countRound = 0; + new->max_countRound = 0; + return new; } diff --git a/src/base/arena.h b/src/base/arena.h index 9512222..2adf0c5 100644 --- a/src/base/arena.h +++ b/src/base/arena.h @@ -29,6 +29,10 @@ typedef struct arena_struct space_t *spaceShot; space_t *spaceTux; space_t *spaceItem; + + int countRound; + int max_countRound; + } arena_t; extern void setCurrentArena(arena_t *p); -- cgit v1.2.3