]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Whitespace police
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 29 Dec 2015 03:08:30 +0000 (14:08 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 29 Dec 2015 03:09:07 +0000 (14:09 +1100)
qcsrc/Makefile
qcsrc/client/scoreboard.qc
qcsrc/common/minigames/minigame/bd.qc
qcsrc/common/minigames/minigame/snake.qc
qcsrc/common/monsters/monster.qh
qcsrc/common/mutators/mutator/buffs/buffs.qc
qcsrc/common/t_items.qc
qcsrc/dpdefs/doc.md
qcsrc/server/command/common.qc
qcsrc/server/mutators/mutator/gamemode_freezetag.qc
qcsrc/server/scores_rules.qc

index fd566d714ad41572832e3eac44edc0e90dc2c266..6e0f04365f4494dde86370c4413f9e1e079ff1d6 100644 (file)
@@ -3,7 +3,7 @@ PERL ?= perl
 QCCFLAGS_WATERMARK ?= -DWATERMARK='"$(shell git describe)"'
 QCC ?= gmqcc
 NDEBUG ?= 1
+
 QCCVERSIONFILE := qccversion.$(shell (cd server && $(QCC) --version) > qccversion.txt && git hash-object qccversion.txt)
 
 # We eventually need to get rid of these
index 9c86d9e4c63355a9c198aa84c9ed285c89d51a50..44b820ebc7a7acadb5faebe2da7265136193e630 100644 (file)
@@ -608,17 +608,17 @@ string HUD_GetField(entity pl, int field)
                case SP_DMG:
                        num = pl.(scores[SP_DMG]);
                        denom = 1000;
-                       
+
                        str = sprintf("%.1f k", num/denom);
                        return str;
-                       
+
                case SP_DMGTAKEN:
                        num = pl.(scores[SP_DMGTAKEN]);
                        denom = 1000;
-                       
+
                        str = sprintf("%.1f k", num/denom);
-                       return str; 
-               
+                       return str;
+
                default:
                        tmp = pl.(scores[field]);
                        f = scores_flags[field];
index ed84b6469c33c56b79eda5592d92c51206fe0228..84120e1b04ad100bd6d148ed9ee2a810205929b7 100644 (file)
@@ -595,7 +595,7 @@ int bd_server_event(entity minigame, string event, ...)
                        minigame.bd_levelname = strzone(autocvar_sv_minigames_bulldozer_startlevel);
                        bd_setup_pieces(minigame);
                        minigame.minigame_flags = BD_TURN_MOVE;
-                       
+
                        return true;
                }
                case "end":
@@ -625,7 +625,7 @@ int bd_server_event(entity minigame, string event, ...)
                        switch(argv(0))
                        {
                                case "move":
-                                       bd_do_move(minigame, ...(0,entity), ((...(1,int)) >= 2 ? argv(1) : string_null), ((...(1,int)) >= 3 ? argv(2) : string_null), ((...(1,int)) >= 4 ? argv(3) : string_null)); 
+                                       bd_do_move(minigame, ...(0,entity), ((...(1,int)) >= 2 ? argv(1) : string_null), ((...(1,int)) >= 3 ? argv(2) : string_null), ((...(1,int)) >= 4 ? argv(3) : string_null));
                                        return true;
                                case "next":
                                        bd_next_match(minigame,...(0,entity), ((...(1,int) >= 2 ? argv(1) : string_null)));
@@ -640,7 +640,7 @@ int bd_server_event(entity minigame, string event, ...)
                                        bd_close_editor(minigame);
                                        return true;
                                case "fill":
-                                       bd_do_fill(minigame, ...(0,entity), ((...(1,int)) >= 2 ? argv(1) : string_null), ((...(1,int)) >= 3 ? argv(2) : string_null)); 
+                                       bd_do_fill(minigame, ...(0,entity), ((...(1,int)) >= 2 ? argv(1) : string_null), ((...(1,int)) >= 3 ? argv(2) : string_null));
                                        return true;
                        }
 
@@ -672,7 +672,7 @@ int bd_server_event(entity minigame, string event, ...)
                        return false;
                }
        }
-       
+
        return false;
 }
 
@@ -714,7 +714,7 @@ void bd_hud_board(vector pos, vector mySize)
        minigame_hud_fitsqare(pos, mySize);
        bd_boardpos = pos;
        bd_boardsize = mySize;
-       
+
        minigame_hud_simpleboard(pos,mySize,minigame_texture("bd/board"));
 
        vector tile_size = minigame_hud_denormalize_size('1 1 0' / BD_TILE_SIZE,pos,mySize);
@@ -751,10 +751,10 @@ void bd_hud_board(vector pos, vector mySize)
                                if(e.bd_enemy)
                                        thepiece = "bd/boulder_target";
 
-                               minigame_drawpic_centered( tile_pos,  
+                               minigame_drawpic_centered( tile_pos,
                                                minigame_texture(thepiece),
                                                tile_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
-                       }       
+                       }
                }
        }
 
@@ -809,17 +809,17 @@ void bd_hud_board(vector pos, vector mySize)
 
                if(active_minigame.minigame_flags & BD_TURN_WIN)
                        victory_text = "Well done! Click 'Next Level' to continue";
-               
+
                vector win_pos = pos+eY*(mySize_y-winfs_y)/2;
                vector win_sz;
                win_sz = minigame_drawcolorcodedstring_wrapped(mySize_x,win_pos,
-                       sprintf("%s", victory_text), 
+                       sprintf("%s", victory_text),
                        winfs, 0, DRAWFLAG_NORMAL, 0.5);
-               
+
                drawfill(win_pos-eY*hud_fontsize_y,win_sz+2*eY*hud_fontsize_y,'0.3 0.3 1',0.8,DRAWFLAG_ADDITIVE);
-               
+
                minigame_drawcolorcodedstring_wrapped(mySize_x,win_pos,
-                       sprintf("%s", victory_text), 
+                       sprintf("%s", victory_text),
                        winfs, panel_fg_alpha, DRAWFLAG_NORMAL, 0.5);
        }
 }
@@ -890,7 +890,7 @@ string bd_turn_to_string(int turnflags)
 
        if ( turnflags & BD_TURN_MOVE )
                return _("Push the boulders onto the targets");
-       
+
        return "";
 }
 
index 67aa51d6e1c4b8a411095a434201f907c6cd12e8..33868ad5702cbd9fa5633784e4fd01361a5f1a4d 100644 (file)
@@ -294,7 +294,7 @@ void snake_eat_team(entity minigame, int pteam)
                minigame.snake_lost_teams |= BIT(pteam);
 
        if(pl && minigame.snake_lives[pteam] > 0)
-               minigame_setup_snake(minigame, pteam);  
+               minigame_setup_snake(minigame, pteam);
 }
 
 void snake_move_head(entity minigame, entity head)
@@ -415,7 +415,7 @@ int snake_server_event(entity minigame, string event, ...)
                        }
                        else
                                minigame.snake_lives[1] = 1;
-                       
+
                        return true;
                }
                case "end":
@@ -465,8 +465,8 @@ int snake_server_event(entity minigame, string event, ...)
                {
                        switch(argv(0))
                        {
-                               case "move": 
-                                       snake_move(minigame, ...(0,entity), ((...(1,int)) >= 2 ? argv(1) : string_null), ((...(1,int)) == 3 ? argv(2) : string_null)); 
+                               case "move":
+                                       snake_move(minigame, ...(0,entity), ((...(1,int)) >= 2 ? argv(1) : string_null), ((...(1,int)) == 3 ? argv(2) : string_null));
                                        return true;
                        }
 
@@ -506,7 +506,7 @@ int snake_server_event(entity minigame, string event, ...)
                        return false;
                }
        }
-       
+
        return false;
 }
 
@@ -539,7 +539,7 @@ void snake_hud_board(vector pos, vector mySize)
        minigame_hud_fitsqare(pos, mySize);
        snake_boardpos = pos;
        snake_boardsize = mySize;
-       
+
        minigame_hud_simpleboard(pos,mySize,minigame_texture("snake/board"));
 
        vector tile_size = minigame_hud_denormalize_size('1 1 0' / SNAKE_TILE_SIZE,pos,mySize);
@@ -633,7 +633,7 @@ void snake_hud_board(vector pos, vector mySize)
                        }
                        else
                        {
-                               minigame_drawpic_centered( tile_pos,  
+                               minigame_drawpic_centered( tile_pos,
                                                minigame_texture(thepiece),
                                                tile_size, tile_color, panel_fg_alpha, DRAWFLAG_NORMAL );
                        }
@@ -654,17 +654,17 @@ void snake_hud_board(vector pos, vector mySize)
                        victory_text = "You win!";
                if(active_minigame.snake_lives[minigame_self.team] <= 0)
                        victory_text = "You ran out of lives!";
-               
+
                vector win_pos = pos+eY*(mySize_y-winfs_y)/2;
                vector win_sz;
                win_sz = minigame_drawcolorcodedstring_wrapped(mySize_x,win_pos,
-                       sprintf("%s %s", victory_text, scores_text), 
+                       sprintf("%s %s", victory_text, scores_text),
                        winfs, 0, DRAWFLAG_NORMAL, 0.5);
-               
+
                drawfill(win_pos-eY*hud_fontsize_y,win_sz+2*eY*hud_fontsize_y,'0.3 0.3 1',0.8,DRAWFLAG_ADDITIVE);
-               
+
                minigame_drawcolorcodedstring_wrapped(mySize_x,win_pos,
-                       sprintf("%s %s", victory_text, scores_text), 
+                       sprintf("%s %s", victory_text, scores_text),
                        winfs, panel_fg_alpha, DRAWFLAG_NORMAL, 0.5);
        }
 }
@@ -726,7 +726,7 @@ string snake_turn_to_string(int turnflags)
 
        if(active_minigame.snake_lives[minigame_self.team] <= 0)
                return _("You ran out of lives!");
-       
+
        if ( (snake_find_head(active_minigame, minigame_self.team)).snake_dir == '0 0 0' )
                return _("Press an arrow key to begin the game");
 
@@ -735,7 +735,7 @@ string snake_turn_to_string(int turnflags)
                        return _("Avoid the snake's body, collect the mice!");
                else
                        return _("Avoid the screen edges and the snake's body, collect the mice!");
-       
+
        return "";
 }
 
index bfbd544e53246a14f31b4b8e0bb5ad0eb80e1791..b8781cbf95651393dbd5da8c92dcb852f9bb5302 100644 (file)
@@ -54,7 +54,7 @@ CLASS(Monster, Object)
     ATTRIB(Monster, mins, vector, '-0 -0 -0')
     /** hitbox size */
     ATTRIB(Monster, maxs, vector, '0 0 0')
-    
+
     /** (SERVER) setup monster data */
     METHOD(Monster, mr_setup, bool(Monster this)) { return false; }
     /** (SERVER) logic to run every frame */
index 9552bc767c9eaef3e5074ca265ca60676194eb27..27c039982df57e56f36303c5442a8dd4ec3f8543 100644 (file)
@@ -198,7 +198,7 @@ void buff_Respawn(entity this)
        vector oldbufforigin = this.origin;
        this.velocity = '0 0 200';
 
-       if(!MoveToRandomMapLocation(this, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY, 
+       if(!MoveToRandomMapLocation(this, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY,
                ((autocvar_g_buffs_random_location_attempts > 0) ? autocvar_g_buffs_random_location_attempts : 10), 1024, 256))
        {
                entity spot = SelectSpawnPoint(true);
index 6505d8911444756dd866c9d45e7a57d711a79a21..da360c80d51eb2e73e703d19855faee3d22bcedc 100644 (file)
@@ -1184,7 +1184,7 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default
        if (!(this.spawnflags & 1024)) {
                if(def.instanceOfPowerup)
                        this.ItemStatus |= ITS_ANIMATE1;
-       
+
                if(this.armorvalue || this.health)
                        this.ItemStatus |= ITS_ANIMATE2;
        }
index e5c19ca770c78ef186aee89486da0bc8627d0c08..302c5d806a0678b88ed925cef074815a9c0b0af2 100644 (file)
@@ -43,11 +43,11 @@ void CSQC_Shutdown();
 //   v_forward: forward
 //   v_right: right
 //   v_up: up
-//   trace_endpos: visorigin 
+//   trace_endpos: visorigin
 .vector camera_transform(vector pos, vector ang);
 
 // control start position of sound()
-// calculated as ofs = time - sound_starttime 
+// calculated as ofs = time - sound_starttime
 float sound_starttime;
 
 ```
@@ -123,7 +123,7 @@ void SV_OnEntityPostSpawnFunction();
 void SetNewParms();
 
 // input:
-//   
+//
 .bool customizeentityforclient();
 
 // input:
index 42420ee2dd7359e393f708ec8664ce239cb0749c..8fd5fb047f083d41e7fbf676b53cbaf20931c121 100644 (file)
@@ -245,7 +245,7 @@ void timeout_handler_think()
 
                                // reset all the flood variables
                                FOREACH_CLIENT(true, LAMBDA(
-                                       it.nickspamcount = it.nickspamtime = it.floodcontrol_chat = 
+                                       it.nickspamcount = it.nickspamtime = it.floodcontrol_chat =
                                                it.floodcontrol_chatteam = it.floodcontrol_chattell =
                                                        it.floodcontrol_voice = it.floodcontrol_voiceteam = 0;
                                ));
index b018baca089cab9e5458707557ac5be90315dca4..d7b01a0d4ac990509b263dc5aae9e150432bcdf6 100644 (file)
@@ -513,7 +513,7 @@ MUTATOR_HOOKFUNCTION(ft, PlayerPreThink, CBC_ORDER_FIRST)
                                ++n;
                        }
                ));
-                       
+
        }
 
        if(n && self.frozen == 1) // OK, there is at least one teammate reviving us
index 2071b0c3211e7a6db05a7d59081c0360d7a594b1..80836bcb35051f49cdcdf423be1840ee340d4b4d 100644 (file)
@@ -31,7 +31,7 @@ void ScoreRules_basics(float teams, float sprio, float stprio, float score_enabl
 
        if(score_enabled)
                ScoreInfo_SetLabel_PlayerScore(SP_SCORE,        "score",     sprio);
-               
+
        ScoreInfo_SetLabel_PlayerScore(SP_DMG, "damage", 0);
        ScoreInfo_SetLabel_PlayerScore(SP_DMGTAKEN, "damagetaken", SFL_LOWER_IS_BETTER);
 }