• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

修訂73a1c6a99b8d9f9354ce83230ee288b4824dac55 (tree)
時間2022-12-17 00:42:31
作者Adam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Replaced C-style char arrays in the team CCMD's callback function with FString.

Change Summary

差異

diff -r 6d16ad10f91b -r 73a1c6a99b8d src/team.cpp
--- a/src/team.cpp Thu Dec 15 15:59:50 2022 -0500
+++ b/src/team.cpp Fri Dec 16 10:42:31 2022 -0500
@@ -1945,10 +1945,10 @@
19451945 // with the changeteam command.
19461946 if ( argv.argc( ) > 1 )
19471947 {
1948- char szCommand[64];
1948+ FString command;
19491949
1950- sprintf( szCommand, "changeteam \"%s\"", argv[1] );
1951- AddCommandString( szCommand );
1950+ command.Format( "changeteam \"%s\"", argv[1] );
1951+ C_DoCommand( command.GetChars( ));
19521952 }
19531953 // If they didn't, just display which team they're on.
19541954 else