+ Reply to Thread
Results 1 to 2 of 2

Thread: Vlen opcode Lua typo

  1. #1
    Wire Sofaking Hitman271's Avatar
    Join Date
    Feb 2008
    Location
    Why? You looking for somebody?
    Posts
    731

    Default Vlen opcode Lua typo

    Code:
    	self.OpcodeTable[269] = function (Param1, Param2) 	//VLEN
    		if (self.VMODE == 2) then
    			local vec = self:Read2f(Param1)
    			self:WriteCell(Param1,(vec.x * vec.x + vec.y * vec.y)^(0.5))
    		else
    			local vec = self:Read3f(Param1)
    			self:WriteCell(Param1,(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z)^(0.5))
    		end
    	end
    Should be

    Code:
    	self.OpcodeTable[269] = function (Param1, Param2) 	//VLEN
    		if (self.VMODE == 2) then
    			local vec = self:Read2f(Param2)
    			self:WriteCell(Param1,(vec.x * vec.x + vec.y * vec.y)^(0.5))
    		else
    			local vec = self:Read3f(Param2)
    			self:WriteCell(Param1,(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z)^(0.5))
    		end
    	end
    It was vector reading from Param1 not the vector of Param2.

  2. #2
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    Done

+ Reply to Thread

Similar Threads

  1. Vnorm opcode
    By Hitman271 in forum Bug Reports
    Replies: 1
    Last Post: 01-18-2009, 02:01 AM
  2. Request for new cpu/gpu opcode
    By Borsty in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 2
    Last Post: 10-07-2008, 06:19 PM
  3. Elev Cpu Example Typo
    By ceribik in forum Bug Reports
    Replies: 2
    Last Post: 07-06-2008, 11:39 PM
  4. Wire Model Pack 1 Plus has typo.
    By Azrael in forum Bug Reports Archive
    Replies: 2
    Last Post: 10-25-2007, 04:08 PM
  5. Bitwise Or opcode
    By PickleofDeath in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 1
    Last Post: 08-24-2007, 02:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots