MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000400Soldat Dedicated ServerScripting Corepublic2013-08-26 03:022014-08-25 22:04
ReporterDorkeyDear 
Assigned ToExHunter 
PrioritylowSeveritytrivialReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.7.5 
Target VersionFixed in Version 
Summary0000400: TActivePlayer.BigText with layer 0 causes WriteConsole behaviour
DescriptionCalling TActivePlayer.BigText with the layer as 0 causes WriteConsole behaviour; that is, text is written to the player console.
Steps To ReproduceCall BigText in an instance of TActivePlayer with the layer being 0. Refer to Additional Information for an example code piece.
Additional Informationprocedure OnClockTick(const Tick: integer);
begin
    if (Players[1].Active) then
        Players[1].BigText(0, 'Text', 500, $FFFF7F, 0.20, 200, 300);
end;

begin
    Game.OnClockTick := @OnClockTick;
end.
TagsNo tags attached.
John
Attached Files

- Relationships

-  Notes
(0001881)
DorkeyDear (reporter)
2013-08-26 03:05

There is also similar behavior with using TPlayers.BigText.
(0001958)
Falcon (administrator)
2013-10-05 23:31
edited on: 2013-10-05 23:32

Well this is perfectly OK, from internal point of view, as 0 means "draw it in console". I agree it's rather confusing though. Question is what do you prefer:
- 0 LayerID throwing an exception
- 255 LayerID throwing an exception (0 working "as intended")
- Leaving it as is
- Anything else you suggest

(0002272)
ExHunter (developer)
2014-08-25 22:04

fixed for next version

- Issue History
Date Modified Username Field Change
2013-08-26 03:02 DorkeyDear New Issue
2013-08-26 03:05 DorkeyDear Note Added: 0001881
2013-09-09 15:45 Falcon Status new => acknowledged
2013-09-12 21:48 Falcon Assigned To => Falcon
2013-09-12 21:48 Falcon Status acknowledged => confirmed
2013-10-05 23:31 Falcon Note Added: 0001958
2013-10-05 23:32 Falcon Note Edited: 0001958 View Revisions
2013-12-27 23:35 Falcon Assigned To Falcon =>
2014-08-21 12:12 ExHunter Assigned To => ExHunter
2014-08-21 12:12 ExHunter Status confirmed => assigned
2014-08-25 22:04 ExHunter Note Added: 0002272
2014-08-25 22:04 ExHunter Status assigned => resolved
2014-08-25 22:04 ExHunter Resolution open => fixed


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker