]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/arc_bolt_bounce
authorMario <mario.mario@y7mail.com>
Mon, 12 Oct 2020 16:59:55 +0000 (02:59 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 12 Oct 2020 16:59:55 +0000 (02:59 +1000)
.tx/merge-base
common.pl.po
qcsrc/common/weapons/weapon/arc.qc
qcsrc/server/command/cmd.qc

index 1ee7cdb840b5e5535b405de0d0d8c246c5c47b00..5737ecab2b51f47cab38994c1787e89d3111dce6 100644 (file)
@@ -1 +1 @@
-Tue Aug 25 07:23:38 CEST 2020
+Fri Oct  9 07:23:35 CEST 2020
index 8b4d769abcc34d27dc220636fb35c2fbef54c4d2..502eaa3513277a9412077864e04c20dbb0562325 100644 (file)
@@ -25,8 +25,8 @@ msgstr ""
 "Project-Id-Version: Xonotic\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2020-08-09 07:23+0200\n"
-"PO-Revision-Date: 2020-08-09 05:23+0000\n"
-"Last-Translator: divVerent <divVerent@xonotic.org>\n"
+"PO-Revision-Date: 2020-10-08 14:36+0000\n"
+"Last-Translator: Karol Kosek\n"
 "Language-Team: Polish (http://www.transifex.com/team-xonotic/xonotic/"
 "language/pl/)\n"
 "Language: pl\n"
@@ -5722,7 +5722,7 @@ msgstr "Nazwa:"
 #: qcsrc/menu/xonotic/dialog_firstrun.qc:53
 #: qcsrc/menu/xonotic/dialog_multiplayer_profile.qc:62
 msgid "Name under which you will appear in the game"
-msgstr "Nazwa pod, którą pokażesz się w grze"
+msgstr "Nazwa, pod którą pokażesz się w grze"
 
 #: qcsrc/menu/xonotic/dialog_firstrun.qc:69
 msgid "Text language:"
index 44fd539bebc5feca780e89e059f5a5f7de1c8461..cdd89e93d2157d5d1fb6c9e008b9dedcb1e16295 100644 (file)
@@ -207,11 +207,14 @@ void W_Arc_Beam_Think(entity this)
 
        Weapon thiswep = WEP_ARC;
 
+       // TODO: use standard weapon use checks here!
        if(
                !IS_PLAYER(own)
                ||
                IS_DEAD(own)
                ||
+               game_stopped
+               ||
                !weapon_prepareattack_check(thiswep, own, weaponentity, this.beam_bursting, -1)
                ||
                own.(weaponentity).m_switchweapon != WEP_ARC
index 6426ce1a29ec217e0d2bf72084fb9a09fabbbf81..ce55570640d426d0002bf79e7906c665565d8faf 100644 (file)
@@ -647,10 +647,13 @@ void ClientCommand_spectate(entity caller, int request)
                                                int spec_accepted = VerifyClientEntity(client, false, false);
                                                if(spec_accepted > 0 && IS_PLAYER(client))
                                                {
+                                                       bool caller_is_observer = (IS_OBSERVER(caller));
                                                        Spectate(caller, client);
+                                                       if (caller_is_observer)
+                                                               TRANSMUTE(Spectator, caller);
                                                }
                                                else
-                                                       sprint(caller, "can't spectate ", argv(1), "^7\n");
+                                                       sprint(caller, "Can't spectate ", argv(1), "^7\n");
                                        }
                                        else
                                                sprint(caller, "cmd spectate client only works when you are spectator/observer\n");