2025-07-21 05:41 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003086Spring engineLuapublic2012-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.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

+Notes

-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
+Issue History