~ubuntu-branches/ubuntu/trusty/teeworlds/trusty-updates

« back to all changes in this revision

Viewing changes to src/game/server/gamemodes/mod.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gonéri Le Bouder
  • Date: 2009-04-12 02:32:37 UTC
  • mfrom: (3.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090412023237-ufmf1xn0rkjmx6f3
Tags: 0.5.1-2
* Fix the ouput of teeworlds-server --help with /bin/sh ->
  /bin/bash (Closes: #511600)
* Standard version 3.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
 
2
#include "mod.hpp"
 
3
 
 
4
GAMECONTROLLER_MOD::GAMECONTROLLER_MOD()
 
5
{
 
6
        // Exchange this to a string that identifies your game mode.
 
7
        // DM, TDM and CTF are reserved for teeworlds original modes.
 
8
        gametype = "MOD";
 
9
        
 
10
        //game_flags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode
 
11
}
 
12
 
 
13
void GAMECONTROLLER_MOD::tick()
 
14
{
 
15
        // this is the main part of the gamemode, this function is run every tick
 
16
        do_player_score_wincheck(); // checks for winners, no teams version
 
17
        //do_team_score_wincheck(); // checks for winners, two teams version
 
18
        
 
19
        GAMECONTROLLER::tick();
 
20
}