MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003086Spring engineLuapublic2012-05-12 00:572012-05-12 01:46
Reportersprung 
Assigned TojK 
PrioritynormalSeveritytrivialReproducibilityalways
StatusresolvedResolutionfixed 
Product Version89.0 
Target VersionFixed in Version 
Summary0003086: Fix for code - LuaUnsyncedCtrl::MarkerAddLine
DescriptionThe LuaUnsyncedCtrl::MarkerAddLine code in /rts/Lua/LuaUnsyncedCtrl.cpp has a few problems, namely:

1) in line 2743: (args != 6), should be ((args != 6) && (args != 7)), since now it has one more optional argument

2) in line 2744: !lua_isstring(L, 1), should be !lua_isnumber(L, 1), just like arguments 2 to 6

3) line 2761 is currently the same as line 2759 with the exception of the 'player' argument being always 1, which causes the lines not only to always be local, but also belonging to player 1 if they weren't set to be local (this might even be an enemy!).
The line
 inMapDrawerModel->AddLine(pos1, pos2, true);
should be
 inMapDrawer->SendLine(pos1, pos2, true);
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0008681)
jK (developer)
2012-05-12 01:46

https://github.com/spring/spring/commit/0bd5a1e711eff311091dfb59197f7d61f0dc803b [^]

- Issue History
Date Modified Username Field Change
2012-05-12 00:57 sprung New Issue
2012-05-12 01:46 jK Note Added: 0008681
2012-05-12 01:46 jK Status new => resolved
2012-05-12 01:46 jK Resolution open => fixed
2012-05-12 01:46 jK Assigned To => jK


Copyright © 2000 - 2013 MantisBT Team
Powered by Mantis Bugtracker