Ticket #1503: netmsg_caption.patch

File netmsg_caption.patch, 932 bytes (added by picobyte, 11 months ago)
  • binaries/data/mods/public/gui/session/messages.js

    commit 3057bbac81a788796465daa2a85179cef1b56370
    Author: Roel Kluin <roel.kluin@gmail.com>
    Date:   Sun Jun 17 09:44:08 2012 +0200
    
        The fall trough causes obj.caption to be overwritten
        
        Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    
    diff --git a/binaries/data/mods/public/gui/session/messages.js b/binaries/data/mods/public/gui/session/messages.js
    index d77b4c9..b681ac9 100644
    a b function handleNetMessage(message) 
    9090        case "connected": 
    9191            obj.caption = "Connected to the server."; 
    9292            obj.hidden = false; 
     93            break; 
    9394        case "authenticated": 
    9495            obj.caption = "Connection to the server has been authenticated."; 
    9596            obj.hidden = false; 
     97            break; 
    9698        case "disconnected": 
    9799            obj.caption = "Connection to the server has been lost.\n\nThe game has ended."; 
    98100            obj.hidden = false;