Skip to content

Commit 7bebd2d

Browse files
committed
Version 29.6, and fix "Molten " in the HUD for lava
1 parent 8ed79e2 commit 7bebd2d

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,12 @@ Update version info to TPT version 90.2, allow GRVT and DRAY in saves.
758758
Version 29.5 9/3/14
759759
Update TPTMP to version .8 (fixes TPTMP)
760760

761+
Version 29.6 9/26/14
762+
Fix FIGH drawing. Fix loop edge mode, also stickmen now loop properly. Fix
763+
stickmen spawning with rocket boots. Stamps can be rotated without holding
764+
ctrl. Update TPTMP to version .82. Fix HUD issues with LAVA and FILT. Add a
765+
'rescan stamps' button in the save browser.
766+
761767

762768

763769

includes/defines.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
//VersionInfoEnd
3131

3232
#define MOD_VERSION 29
33-
#define MOD_MINOR_VERSION 5
33+
#define MOD_MINOR_VERSION 6
3434
#define MOD_SAVE_VERSION 20 //This is not the version number of my mod anymore, it's only changed when I change the saving code
35-
#define MOD_BUILD_VERSION 47 //For update checks
35+
#define MOD_BUILD_VERSION 48 //For update checks
3636
#define BETA_VERSION 90
3737
#define BETA_MINOR_VER 1
3838
#define RELEASE_VERSION 90

src/hud.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void SetRightHudText(int x, int y)
100100
}
101101
if (!currentHud[12] && (tctype>=PT_NUM || tctype<0 || (cr&0xFF)==PT_PHOT))
102102
tctype = 0;
103-
if (globalSim->IsElement(tctype))
103+
if (!tctype || globalSim->IsElement(tctype))
104104
sprintf(nametext, "%s (%s), ", ptypes[cr&0xFF].name, ptypes[tctype].name);
105105
else
106106
sprintf(nametext, "%s (%d), ", ptypes[cr&0xFF].name, tctype);

src/multiplayer/multiplayer.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--I highly recommend to use my Autorun Script Manager
33
--VER 0.81 UPDATE http://pastebin.com/raw.php?i=Dk5Kx4JV
44

5-
local versionstring = "0.81"
5+
local versionstring = "0.82"
66

77
--TODO's
88
--FIGH,STKM,STK2,LIGH need a few more creation adjustments
@@ -76,7 +76,7 @@ local function joinChannel(chan)
7676
conSend(38,L.replacemode)
7777
conSend(65,string.char(math.floor(L.dcolour/16777216),math.floor(L.dcolour/65536)%256,math.floor(L.dcolour/256)%256,L.dcolour%256))
7878
end
79-
local function connectToMniip(ip,port,nick)
79+
local function connectToServer(ip,port,nick)
8080
if con.connected then return false,"Already connected" end
8181
ip = ip or "starcatcher.us"
8282
port = port or PORT
@@ -104,7 +104,7 @@ local function connectToMniip(ip,port,nick)
104104
end
105105
if err=="This nick is already on the server" then
106106
nick = nick:gsub("(.)$",function(s) local n=tonumber(s) if n and n+1 <= 9 then return n+1 else return nick:sub(-1)..'0' end end)
107-
return connectToMniip(ip,port,nick)
107+
return connectToServer(ip,port,nick)
108108
end
109109
return false,err
110110
end
@@ -558,7 +558,7 @@ new=function(x,y,w,h)
558558
connect = function(self,msg,args)
559559
if not issocket then self:addline("No luasockets found") return end
560560
local newname = tpt.get_name()
561-
local s,r = connectToMniip(args[1],tonumber(args[2]), newname~="" and newname or username)
561+
local s,r = connectToServer(args[1],tonumber(args[2]), newname~="" and newname or username)
562562
if not s then self:addline(r,255,50,50) end
563563
pressedKeys = nil
564564
end,

src/multiplayer/multiplayer.lua.cpp

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

src/simulation/Simulation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Simulation
103103

104104
bool IsElement(int t) const
105105
{
106-
return (t>=0 && t<PT_NUM && elements[t].Enabled);
106+
return (t>0 && t<PT_NUM && elements[t].Enabled);
107107
}
108108
bool InBounds(int x, int y)
109109
{

0 commit comments

Comments
 (0)