Skip to content

Commit b0a2849

Browse files
authored
Add files via upload
1 parent a4fd2ef commit b0a2849

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BusEngine/Code/Game/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@ public WinForm() {
778778
//System.Windows.Forms.Form _canvas = System.Windows.Forms.Form();
779779
this.Text = "BusEngine v0.2.0";
780780
// устанавливаем нашу иконку, есди она есть по пути exe, в противном случае устанавливаем системную
781-
if (System.IO.File.Exists(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "/../../Data/Icons/BusEngine.ico")) {
782-
this.Icon = new System.Drawing.Icon(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "/../../Data/Icons/BusEngine.ico", 128, 128);
781+
if (System.IO.File.Exists(BusEngine.Engine.DataDirectory + "Icons/BusEngine.ico")) {
782+
this.Icon = new System.Drawing.Icon(System.IO.Path.Combine(BusEngine.Engine.DataDirectory, "Icons/BusEngine.ico"), 128, 128);
783783
} else {
784784
this.Icon = new System.Drawing.Icon(System.Drawing.SystemIcons.Exclamation, 128, 128);
785785
}
@@ -895,7 +895,7 @@ public virtual void OnGameStop() { }
895895
// когда игрок начинает подключаться к серверу
896896
public virtual void OnClientConnectionReceived(int channelId) { }
897897

898-
// кога игрок подключился к серверу
898+
// когда игрок подключился к серверу
899899
public virtual void OnClientReadyForGameplay(int channelId) { }
900900

901901
// когда игрока выкинуло из сервера - обрыв связи с сервером
@@ -949,7 +949,7 @@ public override void OnClientConnectionReceived(int channelId) {
949949
BusEngine.Log.Info("OnClientConnectionReceived");
950950
}
951951

952-
// кога игрок подключился к серверу
952+
// когда игрок подключился к серверу
953953
public override void OnClientReadyForGameplay(int channelId) {
954954
BusEngine.Log.Info("OnClientReadyForGameplay");
955955
}

0 commit comments

Comments
 (0)