~al-exquemelin/navbattle/0.2

« back to all changes in this revision

Viewing changes to src/mapg.c

  • Committer: Viktor Goryainov
  • Date: 2015-04-12 13:40:30 UTC
  • Revision ID: al_exquemelin@yahoo.com-20150412134030-c4typi9g1dzp8jko
Fixed: error with neighbouring attackers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        //TODO: add comments
161
161
        for(int d=0; d<=(M/8); d++)
162
162
        {
163
 
                time_t t;
 
163
                time_t t; //RNG initiation
164
164
                srand((unsigned)time(&t));
165
165
                int f;
166
166